Comments (6)
Write an example to get the like detail:
https://github.com/huaying/instagram-crawler/pull/40/files
from instagram-crawler.
I made an attempt at this, and I think I'm able to finish if I could get a little help. I have tried but failed to be able to click the down arrow here.
`
def get_liked_by(self, username):
user_posts_info = self.get_user_posts(username, number=3)
for post in user_posts_info:
browser = self.browser
browser.get(post['key'])
time.sleep(1)
like_by_button = browser.find_one('.zV_Nj')
like_by_button.click()`
from instagram-crawler.
Thank you so much @huaying . It works perfect!
from instagram-crawler.
@huaying after running this on a few post I got no likers returned. I ran it with has_screen=True and realized that Instagram would no longer show me likers. Maybe Instagram realised that I was crawling and don't want that... Is this happening for you also?
from instagram-crawler.
Sorry for the late reply. I just tested it and it worked for me.
Not sure what happened. Maybe you can give the post url you tried to crawl
from instagram-crawler.
from instagram-crawler.
Related Issues (20)
- is this crawler working ? HOT 3
- "Other element would receive the click" HOT 1
- request limit
- I have disapointed :( it is not working HOT 3
- Blob Video
- Issue with the code HOT 1
- AttributeError: 'NoneType' object has no attribute 'send_keys' HOT 3
- selenium.common.exceptions.ElementClickInterceptedException HOT 2
- Why not store cookies and sessions? HOT 1
- I don't know how to use it.
- cant fetch comments or post likes.... HOT 1
- Why the limit is 10k ? Let study together, I think i can have break-through! HOT 2
- Chrome 91: element click intercepted
- args = parser.parse_args()
- error when run python crawler.py posts HOT 1
- AttributeError: 'NoneType' object has no attribute 'click' HOT 1
- What is the best way to run Instagram version 195.0.0.31.123?
- ChromeDriver new website
- Cannot login. click() Nonetype
- [Feature Request] Any chance to update with Followers/Followings Scrape of given user profile?
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 instagram-crawler.