Skip to main content

A simple Twitter scraper

Project description

Will Chen's Twitter Scraper

A simple command-line tool to fetch and process tweets.

Features

  • Fetch tweets from a specific user (most recent -- up to 3200)
  • Save tweets to JSON
  • Convert JSON tweets to a readable text format
  • Retrieve a specific tweet by ID

Installation

$ pip install wc-scrape

Usage

First, set up your Twitter Bearer Token:

$ wc-scrape setup

Fetching Tweets

Fetch the latest tweets from a user:

$ wc-scrape fetch-tweets <username> <count>

This will save the tweets to a JSON file.

To generate a text file output, use the --to-txt flag when fetching tweets:

$ wc-scrape fetch-tweets <username> <count> --to-txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wc_scrape-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wc_scrape-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file wc_scrape-0.1.0.tar.gz.

File metadata

  • Download URL: wc_scrape-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0

File hashes

Hashes for wc_scrape-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ec0b0847ca90271de16c60df53b40259c3125c60fa9e31b5cdde5dfae7529ba2
MD5 3be41369000325af162a95b5966d9cf9
BLAKE2b-256 90d444d16e46cf1450d18849c1c8a8ca37c8c5e7db9808b9f3d00e97a2f59d72

See more details on using hashes here.

File details

Details for the file wc_scrape-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: wc_scrape-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0

File hashes

Hashes for wc_scrape-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d8585f1978d7f68c5583b4137b81646b34d1f1e0978999ff088bcf037b71f74
MD5 a7efc11008e72e18db940e56f9a87a02
BLAKE2b-256 07ec2429343b5831d3f05a6606e920edf1bb42de95e4951ddb3f16798ff5fa7f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page