GithubHelp home page GithubHelp logo

pluckerpy-with-twitter-api's Introduction

Pluckerpy with Twitter API

Pluckerpy implementation with Twitter API credentials
Without API credentials: https://github.com/Theieyrre/Pluckerpy

Requirements

Python 3 ( 3.8.3)

Install

If you have pipenv installed run to install dependencies and create virtualenv

pipenv install
pipenv shell

To install dependencies with pip without virtualenv

pip install -r requirements.txt

To run application

python app.py |screen name|

Creates three files:

followers_|screen name|.json: Followers of given user
friends_|screen name|.json: Friends ( people who given user follows) of given user
timeline_|screen name|.json: Tweets of given user

Parameters Description
screen_name [REQUIRED] Screen name of the Twitter Account
count [OPTIONAL] Total amout of tweets to get from user timeline, default: 20
-k, --key [OPTIONAL] Twitter API Key
-s, --secret [OPTIONAL] Twitter API Secret
-at, --access_token [OPTIONAL] Twitter Accesss Token
-as, --access_secret [OPTIONAL] Twitter Accesss Secret
-d, --dir [OPTIONAL] Directory name to write outputs to, default: output
-v, --verbose Extra prints
--csv [OPTIONAL] Print in csv format

To run application with list of names

python app_big.py |JSON File with array of names|

Creates three files for each account:

followers_|screen name|.json: Followers of given user
friends_|screen name|.json: Friends ( people who given user follows) of given user
timeline_|screen name|.json: Tweets of given user

Parameters Description
file_name [REQUIRED] JSON file with JSON array including screen names
count [OPTIONAL] Total amout of tweets to get from user timeline, default: 199
-k, --key [OPTIONAL] Twitter API Key
-s, --secret [OPTIONAL] Twitter API Secret
-at, --access_token [OPTIONAL] Twitter Accesss Token
-as, --access_secret [OPTIONAL] Twitter Accesss Secret
-d, --dir [OPTIONAL] Directory name to write outputs to, default: output
--csv [OPTIONAL] Print in csv format
--all [OPTIONAL] Concatenates different users dataframes to yield three csv files instead
-v, --verbose Extra prints

Access Token and Access Secret are necessary to run application with an authorized twitter account and callback action
Optional parameters or .env file is necessary to run. Either one of them is enough

To run application with list of names

python location.py |Folder name of JSON Accounts|

Creates three files for each account:

|Folder name|.csv accounts with locations

Parameters Description
folder [REQUIRED] Folder name of accounts
-k, --key [OPTIONAL] Twitter API Key
-s, --secret [OPTIONAL] Twitter API Secret
-at, --access_token [OPTIONAL] Twitter Accesss Token
-as, --access_secret [OPTIONAL] Twitter Accesss Secret
-v, --verbose Extra prints

Access Token and Access Secret are necessary to run application with an authorized twitter account and callback action
Optional parameters or .env file is necessary to run. Either one of them is enough

pluckerpy-with-twitter-api's People

Contributors

theieyrre avatar

Watchers

 avatar  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.