radiolarian / AO3Scraper

A Python scraper for getting fan fiction content and metadata from Archive of Our Own.
175 stars 56 forks source link

Cannot run ao3_work_ids.py: Invalid syntax? #39

Closed thiefnessman closed 1 year ago

thiefnessman commented 1 year ago

Hi, apologies if this is a simple question, as I have not used python much outside of my data science classes, so that may be the root of the problem. When I run the example code (the Sherlock one) I get a syntax error pointing to the URL and saying "invalid syntax". Additionally, I tried to run one of the example lines for ao3_get_fanfics.py (python ao3_get_fanfics.py 5937274) and got "invalid syntax" again, this time pointing at the beginning of "ao3_get_fanfics.py". How do I resolve this issue?

thiefnessman commented 1 year ago

Never mind! it turns out all i needed to do was put an exclamation mark in front of the whole thing.