Skip to content
SQLite3 + Python Twitter Backup Utility
Branch: master
Clone or download
Pull request Compare This branch is 2 commits ahead of insom:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tweetconnect
.gitignore
README.md
auth_and_Secret.py
bmtu.py
getTweet.py
search.py
tweetFollow.py
tweetList.py

README.md

Prerequisites

Replace:

  • Access Token key and secret by the users Access Token key and secret
  • Consumer key and secret by the app's consumer key and secret

In auth_and_Secret.py file where line as shown bellow.

TweetOuth=Tweetoauth('Access Token key','Access Token Secret','consumer key', 'consumer secret')

Instruction to Execute:

Make sure that you are not under any proxy server and also make sure that internet access is available.

To execute tweetFollow.py

Usage:

in command prompt navigte to directory containing tweetFollow.py(this directory)

    python tweetFollow.py <username>

Username

  • Twitter Username

Result:

Strores details of all followers and following of specified users in file named __follow.log

To execute bmtu.py

Usage:

in command prompt navigte to directory containing bmtu.py(this directory)

    python bmtu.py  <operation> <username>

Operations:

  • init: Create an initial .db file.
  • fetch: Fill in missing tweets for .db

Username

  • Twitter Username

Result:

Strores the tweets in username.db database

To execute search.py

Usage:

in command prompt navigte to directory containing search.py(this directory)

    python search.py  <operation> <Search Element>

Operations:

  • init: Create an initial .db file.
  • fetch: Fill in missing tweets for .db

Search Eliment:

  • Searches for Search elements in Twitter

Example:

To srearch "Cloud Computing"

To create DB file

python search.py init "Cloud Computing"

To fetch into DB

python search.py fetch "Cloud Computing"

Result:

Stores result in DB

You can’t perform that action at this time.