We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Versions : Python 3.10.12, and snscrape 0.7.0.20230622
Imported Library : import snscrape.modules.twitter as sntwitter
Using : tweets = sntwitter.TwitterSearch(query=search_term, max_results=max_results, since=since_date, until=until_date)
Error: module 'snscrape.utils' has no attribute 'TwitterSearch'
I already tried updating snscrape, uninstalling and reinstalling
import snscrape.modules.twitter as sntwitter import pandas as pd search_term = "any term" max_results = 100 # Optional: Filter by date since_date = "2024-02-01" until_date = "2024-04-01" tweets = sntwitter.TwitterSearch(query=search_term, max_results=max_results, since=since_date, until=until_date)
import
Windows 10 Pro
python3 --version
Python 3.10.12
snscrape --version
snscrape 0.7.0.20230622
Module (import snscrape.modules.something in Python code)
import snscrape.modules.something
module 'snscrape.utils' has no attribute 'TwitterSearch'
No response
The text was updated successfully, but these errors were encountered:
TwitterSearch has never existed. TwitterSearchScraper does, but it's broken (see other open issues).
TwitterSearch
TwitterSearchScraper
I will leave this issue open though because there is a bug here: the error should refer to snscrape.modules.twitter, not snscrape.utils.
snscrape.modules.twitter
snscrape.utils
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Versions : Python 3.10.12, and snscrape 0.7.0.20230622
Imported Library : import snscrape.modules.twitter as sntwitter
Using : tweets = sntwitter.TwitterSearch(query=search_term, max_results=max_results, since=since_date, until=until_date)
Error: module 'snscrape.utils' has no attribute 'TwitterSearch'
I already tried updating snscrape, uninstalling and reinstalling
How to reproduce
Expected behaviour
import
Screenshots and recordings
Operating system
Windows 10 Pro
Python version: output of
python3 --version
Python 3.10.12
snscrape version: output of
snscrape --version
snscrape 0.7.0.20230622
Scraper
How are you using snscrape?
Module (
import snscrape.modules.something
in Python code)Backtrace
module 'snscrape.utils' has no attribute 'TwitterSearch'
Log output
No response
Dump of locals
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: