pyscp
pyscp copied to clipboard
{'status': 'wrong_token7', 'message': 'no', 'CURRENT_TIMESTAMP': 1597962336, 'callbackIndex': None}
Got an error when trying to do anything. Links to line 392 in .local/lib/python3.6/site-packages/pyscp/wikidot.py
Also tried changing both tokens to a token that was given to me when i loaded site normally
You're probably using incorrect domain (like scp-wiki.net
instead of scpwiki.com
).
Actually I already noticed and fixed that problem. It gives me a different error about redirection when I first did that (because it redirected to new site)
I also get this error when I launch script.
import pyscp
wiki = pyscp.wikidot.Wiki('www.scpwiki.com')
p = wiki('scp-837')
print(f'"{p.title}" has a rating of {p.rating}, {len(p.history)} revisions, and {len(p.comments)} comments.')
https://github.com/Footsiefat/OFFLINE_SCP_WIKI try my custom code i made up :)
Thanks, but I need to connect to SCP Wiki site.
This can do that too, it scrapes the content from each page.