philosopher-g33k / tweetbot Goto Github PK
View Code? Open in Web Editor NEWtwitter bot written in python
twitter bot written in python
PRE-ALPHA How-to documentation being progressively updated Whats is tweetbot? Just another configurable twitter bot written in Python Why was it created? Due to workpressure and general lethargy, tweeting may start to feel more like a chore. Tweetbot was created to take this burden away from you, this is a configurable bot which allows you to specify a list of topic which interests you. Then the bot reaches out to "HackerNews" to fetch the top news, filter out the topics of interests and tweet them out, even creating appropriate "Hashtags" to be attached. The bot also uses url shortening service provided by Bitly to make sure the tweet remains under the specified character limit on twitter. Limitations: - Currently only news source available is HackerNews, and is tightly integrated in the codebase. - News is fetched once a day, is configurable. - Can only tweet on your account, integration of stream for active listening of your twitter feed is not available. How to use? - Prerequisits: - Python 3.x (tested on python 3.7.x and 3.9) - Pip for installation of third party libraries - Third party packages like hackernews, bitlyshortner, scheduler etc - Virtualenv (optional) (I use virtualenv wrapper personally) - Developer account for Bitly - Twitter dev API token and secrets - Get up and running: - Clone the repo - install required packages using the following command pip3 install -r requirements.txt - create a .env file at project root diretory - Add the following lines TWITTER_CONSUMER_KEY=<key> TWITTER_CONSUMER_SECRET=<secret> TWITTER_ACCESS_TOKEN=<token> TWITTER_ACCESS_TOKEN_SECRET=<token secret> - Replace values with your credentials from twitter dev portal - to run the code, from projects root directory on terminal: python main.py
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.