Comments (10)
I don't think this issue is related to the library but is probably due to some external factor. I am unable to recreate this issue. What is your environment? I found related issues here
Just side note: I would suggest using scrape_topic_with_api()
for faster speed and accurate data in case you're scraping topics
from twitter-scraper-selenium.
I tried scrape_topic_with_api, I got this -
2022-10-29 09:23:32,697 - twitter_scraper_selenium.element_finder - ERROR - Failed to find key!
NoneType: None
2022-10-29 09:23:32,794 - twitter_scraper_selenium.element_finder - WARNING - Error at find_graphql_link : 'NoneType' object has no attribute 'split'
2022-10-29 09:27:50,535 - WARNING - Failed to make request!
Traceback (most recent call last):
File "/root/Bots/DiscordBots/TwitterTopics/MTC/src/util/scrape.py", line 6, in <module>
scrape_topic_with_api(URL='https://twitter.com/i/topics/1468157909318045697', output_filename='tweets', tweets_count=10)
File "/usr/local/lib/python3.10/dist-packages/twitter_scraper_selenium/topic_api.py", line 156, in scrape_topic_with_api
data.update(content)
TypeError: 'NoneType' object is not iterable
from twitter-scraper-selenium.
The issue is probably that firefox itself is not instantiating on your system. What is your environment?
from twitter-scraper-selenium.
The issue is probably that firefox itself is not instantiating on your system. What is your environment?
As in? I'm on Ubuntu 20.04, with Python 3.10
from twitter-scraper-selenium.
Okay, I don't have much idea about this issue. People all over the internet end up with this for different reasons which can be found here. I've kept a wait before accessing DOM as well. Please consider passing the argument headless=False
to scrape_topic()
, it'll show you what is happening with your browser
from twitter-scraper-selenium.
2022-10-29 12:47:24,770 - WARNING - Error at scrap : Message: Process unexpectedly closed with status 1
Traceback (most recent call last):
File "/root/Bots/DiscordBots/TwitterTopics/MTC/src/util/scrape.py", line 6, in <module>
scrape_topic_with_api(URL='https://twitter.com/i/topics/1468157909318045697', output_filename='tweets', tweets_count=10, headless=False)
File "/usr/local/lib/python3.10/dist-packages/twitter_scraper_selenium/topic_api.py", line 156, in scrape_topic_with_api
data.update(content)
AttributeError: 'NoneType' object has no attribute 'update'
from twitter-scraper-selenium.
No, I meant to say you can watch the browser opening by yourself which can let you know what is happening in your system while scraping. You might have seen browser opening automatically all that, that's what I was talking about
from twitter-scraper-selenium.
No, I meant to say you can watch the browser opening by yourself which can let you know what is happening in your system while scraping. You might have seen browser opening automatically all that, that's what I was talking about
I tested it, it works on my laptop for some reason, but not the vps
from twitter-scraper-selenium.
I can't say why it isn't running on VPS π€
from twitter-scraper-selenium.
nvm, turns out a reboot fixed it π thank you for the help
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 10
- 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
- timeout exception HOT 3
- 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.