Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid syntax? #14

Closed
tcheerno opened this issue Sep 21, 2018 · 2 comments
Closed

invalid syntax? #14

tcheerno opened this issue Sep 21, 2018 · 2 comments

Comments

@tcheerno
Copy link

tcheerno commented Sep 21, 2018

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.

@Exceen
Copy link
Owner

Exceen commented Sep 22, 2018

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

@tcheerno
Copy link
Author

tcheerno commented Oct 6, 2018

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.

@Exceen Exceen closed this as completed Oct 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants