Skip to content
New issue

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

AttributeError: 'FileFinder' object has no attribute 'find_module' #1038

Closed
xts-bit opened this issue Dec 13, 2023 · 3 comments
Closed

AttributeError: 'FileFinder' object has no attribute 'find_module' #1038

xts-bit opened this issue Dec 13, 2023 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@xts-bit
Copy link

xts-bit commented Dec 13, 2023

Describe the bug

I get this error when i install the package and try to run my code. the error is "AttributeError: 'FileFinder' object has no attribute 'find_module'"

Anyone help please ,


import snscrape.modules.twitter as sntwitter
import pandas as pd

username = "elonmusk"

tweets_list = []

for i, tweet in enumerate(sntwitter.TwitterSearchScraper('from:'+username).get_items()):
    if i >= 100:  
        break
    tweets_list.append([tweet.date, tweet.id, tweet.content, tweet.url])
tweets_df = pd.DataFrame(tweets_list, columns=['Datetime', 'Tweet Id', 'Text', 'URL'])

print(tweets_df)

How to reproduce

python3 index.py

Expected behaviour

It should get all tweets by elon musk

Screenshots and recordings

No response

Operating system

MacOS

Python version: output of python3 --version

Python 3.12.0

snscrape version: output of snscrape --version

I again get this error AttributeError: 'FileFinder' object has no attribute 'find_module'

Scraper

twitter

How are you using snscrape?

Module (import snscrape.modules.something in Python code)

Backtrace

No response

Log output

No response

Dump of locals

No response

Additional context

No response

@xts-bit xts-bit added the bug Something isn't working label Dec 13, 2023
@JustAnotherArchivist
Copy link
Owner

Duplicate of #782, but Twitter scraping won't work currently even after that's resolved (#996).

@JustAnotherArchivist JustAnotherArchivist closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 2023
@JustAnotherArchivist JustAnotherArchivist added duplicate This issue or pull request already exists and removed bug Something isn't working labels Dec 16, 2023
@xts-bit

This comment was marked as spam.

@tangruixun
Copy link

How to fix this????????????

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants