wmhartl / watchbot Goto Github PK
View Code? Open in Web Editor NEWTwitter bot for unique images of watches
License: Other
Twitter bot for unique images of watches
License: Other
Need to extend error checking in exec_google_search - either if/then or try/except, need to research Beautiful Soup.
Rather than just tweet the same phrase every time, provide a set of possible tweets to choose from (possibly randomly).
It would be nice to have a configuration option to log to a file.
Think the last else might be excessive.
if not status and not filename:
logging.error("Tweet error")
else:
if filename:
api.update_with_media(filename, status)
else:
if status:
api.update_status(status)
**else:
logging.error("Nothing to tweet")**
Would be nice to extend the search so that it looks for unique images longer than one google search pass.
Could put the entire main function in a loop and if no unique images are found either search a second google page or change the date for the search. Could also store images not used in a day in the database with an additional "unused" field that could be tapped when no unique images are found.
This as written stores files forever. We could pare down beyond a certain timeframe (90 days?) but that could introduce duplicates to the feed over time.
Fix might require a rewrite to use the captured image file hash as the means to check for duplicates rather than the URL in order to safely dump the files.
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.