No.6441
They changed the API for the posts, so they will need to update the code to grab the media. The new API sucks balls, because now you cant get the server for the files directly from the posts API, you have to go into each post individually, which makes things 50 x slower to scrape. As a positive since the move to coomer.st my download speeds have increased quite significantly. Its not abnormal to get hours @ 1-4mbps, whereas previously i was struggling to get much over 200-500 kbps (average constant download speed, including waiting for reconnections since the server still gives lots of errors). But that could just be a product of all of these other downloaders being offline freeing up the bandwidth. I just updated my own scraper and with the change to the API and the rate limits for scraping the API, means a large creator can take like 30 mins to just scrape all of the media urls. Im sure theres ways to beat the rate limit and just async it to death, but it's an unfortunate change. Alternative is to just test every server at download time until you get the right one, that would leave scraping times as per normal. Not sure why they made this change, its going to mean theres way more API hits than before which cant be a good thing.
No.6455
the posts API only returns the path for the media file, not the server (eg.
https://n2.coomer.st)s. Can you still donwload the files without knowing the server? the full url for a media file is server / data / path. The server use to be in the posts json, so you could grab the media of 50 posts at a time. But now its missing, and can only find it if hit the individual post api. I use python to scrape, not a coder by any means.
No.6458
>>6455If you have this:
{
"name": "0hqe5044pdke1lintpxnw_source.mp4",
"path": "/cd/22/cd229bcb22a356d9c112b21fc763e86b9209d4995d4ad8ff06a906bddfa09c82.mp4"
}
Then you can do this:
url = "http://" + coomerHost + "/data" + jsonFilePath + "?f=" + jsonFileName"
Or:
http://coomer.st/data/cd/22/cd229bcb22a356d9c112b21fc763e86b9209d4995d4ad8ff06a906bddfa09c82.mp4?f=0hqe5044pdke1lintpxnw_source.mp4