toadlybroodle / spam-bot-3000 Goto Github PK
View Code? Open in Web Editor NEWSocial media research and promotion, semi-autonomous CLI bot
Social media research and promotion, semi-autonomous CLI bot
can you explain like I'm 5 how to set this up properly?
Traceback (most recent call last):
File "twatBot.py", line 5, in
import tweepy
ImportError: No module named tweepy
Going to try to assist as much as I can to find a solution for this one. Scraped everything alright...I believe. But was unable to submit promotions. Raised the following error:
spam-bot-3000.py:371: SyntaxWarning: "is" with a literal. Did you mean "=="?
if ret_code is 3:
spam-bot-3000.py:396: SyntaxWarning: "is" with a literal. Did you mean "=="?
if ret_code is 0:
spam-bot-3000.py:398: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif ret_code is 2:
spam-bot-3000.py:400: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif ret_code is 3:
spam-bot-3000.py:498: SyntaxWarning: "is" with a literal. Did you mean "=="?
if ret_code is 2: # HTTPError returned from query, move onto next query
spam-bot-3000.py:677: SyntaxWarning: "is" with a literal. Did you mean "=="?
if ret_code is 3:
spam-bot-3000.py:688: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif ret_code is 2: # automation detected
spam-bot-3000.py:691: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif ret_code is 3: # serious error returned, terminate activity
Authenticating...
2020Jul22 06:07:38 Authenticated as: Some user
Traceback (most recent call last):
File "spam-bot-3000.py", line 735, in <module>
main(sys.argv[1:])
File "spam-bot-3000.py", line 722, in main
replyReddit()
File "spam-bot-3000.py", line 130, in replyReddit
submission = reddit.submission(url=pd[1])
File "/usr/local/lib/python3.8/site-packages/praw/reddit.py", line 800, in submission
return models.Submission(self, id=id, url=url)
File "/usr/local/lib/python3.8/site-packages/praw/models/reddit/submission.py", line 540, in __init__
self.id = self.id_from_url(url)
File "/usr/local/lib/python3.8/site-packages/praw/models/reddit/submission.py", line 427, in id_from_url
raise InvalidURL(url)
praw.exceptions.InvalidURL: Invalid URL: https://i.redd.it/xxxxx.jpg
I believe that it is scraping not the post link but the contents of the post itself.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.