wwyaiykycnf / e621dl

The automated e621.net downloader
40 stars 23 forks source link

Downloaded, but won't run #40

Closed Nate-GIS closed 7 years ago

Nate-GIS commented 7 years ago

Hello! I'm relatively new at using Python, so there is a possibility i'm doing something wrong. I downloaded your zip, and I have python 2.17 installed. When I run the program through python, it gives this error. pythonerror

Maybe im doing something wrong, can someone help? And as a second question, does this program support downloads of gif and videos from the website?

DatDraggy commented 7 years ago

Don't use the command line. Just open e621dl.py in python and press F5 to run it. It says that it couldn't find the py file.

Search for "IDLE" in the windows search bar, open it, press "File" in the window and click "Open..."

Nate-GIS commented 7 years ago

tried that, i get this error pythonerror

Wulfre commented 7 years ago

It looks like the useragent got banned again. The source code includes a useragent that tries to imitate a web browser instead of being honest that its a script. @DatDraggy posted about how to fix it in another issue (#39).

Nate-GIS commented 7 years ago

can you send the link to that issue? ill see if i can fix it through that

DatDraggy commented 7 years ago

@Wulfre is right. They don't allow imitating of a browser

@jaconfurz here you go https://github.com/wwyaiykycnf/e621dl/issues/39#issuecomment-285446174

Nate-GIS commented 7 years ago

Thanks, its working now! :D Though one last question. Does this script download existing pictures/videos/sfw? Or does it only download new items as they are posted after the script runs?

My tag is "Yiff Animation order:score" and its downing 7 posts. Im trying to download like the first 10 pages, sorted by highest rated, is this possible to do?

DatDraggy commented 7 years ago

Remove CONFIG['last_run'] = YESTERDAY.strftime(default.DATETIME_FMT) from line 162. Then set the date to something old in the config

Should download everything after that date then

Wulfre commented 7 years ago

As @DatDraggy mentioned, setting the date to something further back in time in your config will download older posts. Downloading them in order of score won't do much for you though, because the script names the files by their md5, essentially displaying them to you in your directory in a random order.

Nate-GIS commented 7 years ago

Thank you! :)