Skip to main content

threads_scraper

A Python package for scraping Threads posts.

Installation

Install the package using pip:

pip install threads-scraper

Usage

from threads_scraper.scraper import ThreadsScraper

# Initialize the scraper
scraper = ThreadsScraper(
    username="your_username",
    password="your_password",
    driver_path="/path/to/chromedriver",
)

scroll_times = 10
csv_index = True

# Start the scraper
scraper.get_driver()

if scraper.login_to_threads():
    data = scraper.scrape(["keyword1", "keyword2"], scroll_times) # default scroll_times = 5
    scraper.save_to_csv(data, "data/threads_posts.csv", csv_index) # default csv_index = False

scraper.close()

Metadata

Release files for threads-scraper 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for threads-scraper 1.1.0
File Size Uploaded Provenance Actions
threads_scraper-1.1.0.tar.gz 3.8 kB Without provenance Details for threads_scraper-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for threads-scraper 1.1.0
File Interpreter ABI Platform Actions
threads_scraper-1.1.0-py3-none-any.whl Python 3 none any Details for threads_scraper-1.1.0-py3-none-any.whl

Total release size: 8.2 kB

Release files / threads_scraper-1.1.0.tar.gz

Download URL threads_scraper-1.1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
546e87418f79348a3cdfd991a97ebcf10a730e049984a72bc905a5ccd0f3437b
BLAKE2b-256 checksum
How to use checksums
200570a240ec4539ccf0c0ac52353852b39aa7c953edd4e1eb4ee5b5a32007d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.4

Release files / threads_scraper-1.1.0-py3-none-any.whl

Download URL threads_scraper-1.1.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ee3e7a1af0c4e908764f98e217b13440ae76679db98dc499d26189b6cec5795
BLAKE2b-256 checksum
How to use checksums
a0e22e72802cb12ca2f1ec769a49491a2c0cc998380b0e21d3da98d6c5dbacde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.4

Security for threads-scraper 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page