Giter Site home page Giter Site logo

rockwithguru / twitterbotsample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ykdojo/twitterbotsample

0.0 0.0 0.0 9 KB

A sample Twitter bot - created by @ykdojo. This is part of the Edit Dojo project.

Home Page: https://github.com/ykdojo/editdojo

License: MIT License

Python 100.00%

twitterbotsample's Introduction

Twitter Bot Sample

A sample Twitter bot in Python - created by @ykdojo. This is part of the Edit Dojo project.


Set up notes

How to install Tweepy

First, check your Python version with python3 --version or python --version on console (terminal/shell/command prompt).

If you don't have Python 3 installed (if the above command fails):

Either install Python 3 on your computer OR use something like PythonAnywhere (https://csdojo.io/py).

If you have Python 3.6, you can just run:

pip3 install tweepy

If you have Python 3.7, run the following instead:

pip3 install -U git+https://github.com/tweepy/tweepy.git@2efe385fc69385b57733f747ee62e6be12a1338b

If the above command doesn't work, try replacing pip3 with pip also.

If you have Python 3.7 and want to use pipenv, use:

pipenv install -e git+https://github.com/tweepy/tweepy.git@2efe385fc69385b57733f747ee62e6be12a1338b#egg=tweepy


Files

  • my_twitter_bot.py - This is the main file that includes all the logic.
  • last_seen_id.txt - This will contain the ID of the tweet that my_twitter_bot.py has seen last. If you see any errors when running the main file, try replacing the content with the ID of one of the tweets you want to examine.
  • keys_format.py - This file is not meant to be used directly. Instead, copy this file in the same folder and rename it to keys.py. Then, put your Twitter API keys in keys.py. That way, my_twitter_bot.py will be able to use this information.

twitterbotsample's People

Contributors

ykdojo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.