Comments (13)
You're using Python 3.10?
from twitter-scraper-selenium.
You can clone this repository and try to install it from the source as well.
- Clone the repository
- Open Terminal in the repository directory
- Use the command
pip install .
from twitter-scraper-selenium.
Ok thanks for support . I will try . And feedback.
So what is vesion of python requirement ?
from twitter-scraper-selenium.
from twitter-scraper-selenium.
After install it show "name "ex" not defined ." Please check on picture
from twitter-scraper-selenium.
Can you please share what code you're using that causes this error?. I just tried and it is working fine for me but might be something which is happening at your side
from twitter-scraper-selenium.
from twitter_scraper_selenium import scrap_profile
scrap_profile(twitter_username="LauraHa51649745",output_format="csv",browser="chrome",tweets_count=10,filename="microsoft",directory="home\use\downloads")
this is my code .
from twitter-scraper-selenium.
You're probably hitting the authentication page here. I got it too few times,
from twitter-scraper-selenium.
OK thanks . i got it .
I have a question . i have a list of usenam id with txt file , and i would like to get the lastest tweet link and the lastest retweet link of all use on the list . Is posible ?
from twitter-scraper-selenium.
Yeah, it is possible
from twitter-scraper-selenium.
OH , I i happy to hear that. Can you give me some instruction
from twitter-scraper-selenium.
There are several ways I see,
- You can use twitter's API. But It often has a rate limit and is sometimes hard to deal with.
- You can use this library with the proxy of the country which might have loose internet laws. You're hitting auth wall frequently probably that's the reason. I tried the same username twice or thrice and it worked for me.
- You can even check this library https://github.com/JustAnotherArchivist/snscrape. Not sure if is still working but last year it was working though, it uses Twitter's API I assume.
If you're planning to create your own web crawler, you can't use simple HTTP requests to scrape because front-end code is injected via JavaScript. You must use a Web browser in an unofficial way but still, you'll have to deal with auth wall. Have a look at their API documentation, they've tweet id in their API response which they call the status
field, you can just use that single field to generate a tweet's URL. Tweet's URL can be generated just by simple string concatenation https://twitter.com/{twitter_username}/status/{status}
. I think they probably will have some similar mechanism for retweets as well. Your data for requirements are much simpler and can be resolved via API itself, if you need more data which is not present in their API then you should go with this library.
from twitter-scraper-selenium.
Thankyou so much. I will learn and try
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.