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)
| File | Size | Uploaded | |
|---|---|---|---|
| threads_scraper-1.1.0.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| threads_scraper-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
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
|