Code Monkey home page Code Monkey logo

twint_api's Introduction

Twint Zero API Twitter Query

This script runs a "Twint Zero" API Twitter query and returns the results in CSV format. It uses the main.go script from zedeus/nitter to perform the query.

Prerequisites

Before using this script, please make sure you have the following software installed:

  • Go 1.16 or higher
  • Twint Zero
  • Python 3.10 or higher
  • pip install pandas

To install Twint Zero, follow these steps:

  1. Clone the Twint Zero repository to your local machine:

    git clone https://github.com/PG_Insights/Twint_API
  2. Navigate to the cloned repository:

    cd Twint_API
  3. Initialize the Go module:

    go mod init twint-zero
  4. Tidy the Go module:

    go mod tidy

    Twint Zero was created by Francesco Poldi, with contributions from Simon Archer.

    Francesco Poldi

    Simon Archer: JSON formatting and attachments parsing

Usage

  1. Clone this repository to your local machine
  2. Open your terminal and navigate to the directory where you cloned the repository
  3. Run the following command to install the Python dependencies:
pip install -r requirements.txt
  1. Run the script using the following command:
python twint_api.py [query]

Usage

  1. Clone this repository to your local machine

  2. Open your terminal and navigate to the directory where you cloned the repository

  3. Run the following command to install the Python dependencies:

    pip install -r requirements.txt
  4. Run the script using the following command:

    python main.py [query]

    where [query] is a string representing your Twitter query as described in igorbrigadir/twitter-advanced-search.

    This will run a Twitter query based on the given query string and save the result in CSV format.

    By default, the script uses the birdsite.xanny.family instance of nitter, but you can modify this by changing the -Instance parameter in the return_query_results() function in main.py.

Output

The CSV file will be saved in the twint-responses directory in the same directory as the script, and will be named with the date and time of the query and the query string used for the query.

Contributing

If you would like to contribute to this project, please feel free to create a pull request or open an issue.

Questions/Issues

If you have any questions or issues with this script, please feel free to fork it and fix it yourself.

License

This project is licensed under the MIT License.

Credits

This project was created by Dale Ludwinski for Let MO Play.

Visit us on Twitter.

twint_api's People

Contributors

quaaalud avatar

Stargazers

Rami B. avatar  avatar

Watchers

 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.