Comments (3)
You must be scraping it without authentication. I think it is because of #74
from twitter-scraper-selenium.
yes i am doing it without authentification but its a public account here is my code from twitter_scraper_selenium import scrape_profile
scrape_profile(twitter_username="2MInteractive",output_format="csv",browser="firefox",tweets_count=5,filename="microsoft",directory="/home/user/Downloads",headless=False)
and while trying from twitter_scraper_selenium import get_profile_details
twitter_username = "TwitterAPI"
filename = "twitter_api_data"
get_profile_details(twitter_username=twitter_username, filename=filename) it worked fine
from twitter-scraper-selenium.
and got this error [WDM] - Driver [C:\Users\HP Probook.wdm\drivers\geckodriver\win64\v0.33.0\geckodriver.exe] found in cache
2023-07-15 18:37:18,929 - twitter_scraper_selenium.element_finder - ERROR - Error at method find_status : Message: Unable to locate element: a[aria-label][dir]
Stacktrace:
RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:187:5
NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:505:5
element.find/</<@chrome://remote/content/marionette/element.sys.mjs:135:16
Traceback (most recent call last):
File "C:\Users\HP Probook\PycharmProjects\firstproject\venv\lib\site-packages\twitter_scraper_selenium\element_finder.py", line 68, in find_status
anchor = tweet.find_element(
File "C:\Users\HP Probook\PycharmProjects\firstproject\venv\lib\site-packages\selenium\webdriver\remote\webelement.py", line 433, in find_element
return self._execute(Command.FIND_CHILD_ELEMENT, {"using": by, "value": value})["value"]
File "C:\Users\HP Probook\PycharmProjects\firstproject\venv\lib\site-packages\selenium\webdriver\remote\webelement.py", line 410, in _execute
return self._parent.execute(command, params)
File "C:\Users\HP Probook\PycharmProjects\firstproject\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 444, in execute
self.error_handler.check_response(response)
File "C:\Users\HP Probook\PycharmProjects\firstproject\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 249, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: a[aria-label][dir]
Stacktrace:
RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:187:5
NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:505:5
element.find/</<@chrome://remote/content/marionette/element.sys.mjs:135:16
2023-07-15 18:37:18,938 - ERROR - Error at method fetch_and_store_data : not enough values to unpack (expected 2, got 0)
Traceback (most recent call last):
File "C:\Users\HP Probook\PycharmProjects\firstproject\venv\lib\site-packages\twitter_scraper_selenium\profile.py", line 61, in __fetch_and_store_data
status, tweet_url = Finder.find_status(tweet)
ValueError: not enough values to unpack (expected 2, got 0)
from twitter-scraper-selenium.
Related Issues (20)
- Unable to launch the lib HOT 2
- Proxy HOT 3
- How to show progress for the scraping process? Right now there is no indication that it works until it is all done.
- AttributeError: 'str' object has no attribute 'close' HOT 9
- More Examples and Documentation Needed HOT 1
- API rate limit exceeded with scrape_profile() function HOT 5
- login support before executing apis HOT 3
- Install help: selenium.common.exceptions.SessionNotCreatedException HOT 1
- why the very long wait in wait_until_completion( ) HOT 2
- scrape_keyword : search in array of keyword not just a string HOT 1
- The address returned by calling scrape_profile is wrong!
- not enough values to. unpack HOT 1
- Are Musk,s new limitations impacting this module? HOT 8
- Tweets did not appear HOT 7
- Failed to make request! HOT 1
- Tweets not ordered by date HOT 2
- Inject javascript to get media url
- twitter_scraper_selenium.scraping_utilities:Error at find_x_guest_token: 'guest_token'
- add input tweet url to scrape tweet comments and nested replies
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitter-scraper-selenium.