title: Like instagram photo with selenium python
body: <p>I'm trying to code my own bot python selenium bot for instagram to experiment a little. I succeeded to log in and to search an hashtag in the search bar which lead me to the following web page:
  <a href="https://i.stack.imgur.com/Ij9bq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ij9bq.png" alt="web page"></a></p>
  
  <p>But I can not figure out how to like the photos in the feed, i tried to use a search with xpath and the following path:
       "//[@id="reactroot"]/section/main/article/div<a href="https://i.stack.imgur.com/Ij9bq.png" rel="nofollow noreferrer">1</a>/div/div/div<a href="https://i.stack.imgur.com/Ij9bq.png" rel="nofollow noreferrer">1</a>/div<a href="https://i.stack.imgur.com/Ij9bq.png" rel="nofollow noreferrer">1</a>/a/div"
  But it didn't work, does anybody have an idea?</p>