Exceen/4chan-downloader

invalid syntax?

tcheerno opened this issue · 2 comments

I guess I miss something very simple, but cannot figure it out, so here goes nothing

I followed the instructions to in README.md and typed

$ python inb4404.py http://boards.4chan.org/w/thread/2096591/lain-thread-anyone-have-any-arisu

The only result was:

File "inb4404.py", line 129
print(line.replace(link, '-' + link), end='')
^
SyntaxError: invalid syntax

And I'm too dumb to know if this is a typo to fix or I should use a different URL (direct one to the first pic in thread maybe?).

(After hundreds of shameful edits): also the output points at end='' equation, but for love of god I have no idea how to paste it here so markdown does not cut out all spaces.

Are you using Python 2? That's probably your problem here if I had a guess because this script is written in Python 3.6. I dropped Python 2 two months ago. There's an older version of the script written in Python 2 in the legacy directory in case you don't wanna switch to Python 3.

https://github.com/Exceen/4chan-downloader/tree/master/legacy

Okay, not sure what was the issue initially. Before running the script for the first time, I checked if I have python3 installed. After your comment, I installed python3-dev and did some updates. Now I did a sanity check and run the script again. It worked flawlessly.