Update 2020-07-21: Pssst, it still works
Soup.io is officially
dead in new hands now, but old servers haven’t been turned off yet. So apparently you still have a chance of backing up your soup.
126.96.36.199 soup.io 188.8.131.52 www.soup.io 184.108.40.206 YOURSOUP.soup.io 220.127.116.11 asset.soup.io
Put in your soup’s name in place of
- Follow the instructions below.
Dej, mam umierajoncom zupe
soupscraper is a downloader for Soup.io. Here’s a screencast of the local copy that it can generate for you:
See an example here.
- Install Clojure
- Clone this repo, cd to the main directory
clojure -A:runto see the options
clojure -A:run https://yoursoup.soup.ioor just
clojure -A:run yoursoupto do the full magic
If you want to just download a few pages, add the
-e) option. For example:
clojure -A:run -e 2020-07-01 yoursoup will skip simulating infinite scroll as soon as it encounters posts from June 2020 or earlier.
Without installing Clojure
- Install Java if you haven’t already (tested on JRE 11, any version >=8 should work)
- Download the jar
- Follow step 3 or 4 above, replacing
java -Djdk.tls.client.protocols=TLSv1,TLSv1.1,TLSv1.2 -jar soupscraper-0.1.jar
java -Djdk.tls.client.protocols=TLSv1,TLSv1.1,TLSv1.2 -jar soupscraper-20200717.jar yoursoup
I’m on Windows! How can I run this?
Use the “Without installing Clojure” approach above.
I ran this and it completed, where’s my soup?
soup. Unless you change the output directory with
There’s some shit in
~/skyscraper-data which takes up a lot of space!
Yes, there’s a bunch of files there; you can’t easily view them. Technically, they’re HTMLs and assets, stored as netstrings, and preceded by another netstring corresponding to HTTP headers as obtained from server, in edn format.
There are several upsides for having a local cache of this kind.
You can abort the program at any time, and restart it later. It won’t redownload stuff; rather, it will reuse what it’s already downloaded.
Once you’ve downloaded it, it’s there. When Soup.io finally goes dead, it will continue to be there, and you’ll be able to re-run future versions of the program.
If you’re super happy about your output in
soup, you can delete
~/skyscraper-data, but be aware that from then on you’ll need to redownload everything if you want to update your output.
It’s hung / doing something weird!
Try to abort it (^C) and restart. It’s safe.
If you continue to have problems, there’s some logs in
log/. Create an issue in this repo and attach the logs, possibly trimming them. I’ll see what I can do, but can’t promise anything.
How’d you write this?
It uses my scraping framework, Skyscraper. Check it out.
Copyright 2020, Daniel Janus and contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.