1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Python code to scrape IG photo (url)'s comments & likes

Discussion in 'Instagram' started by ynrrk, Mar 6, 2018.

  1. ynrrk

    ynrrk Newbie

    Mar 6, 2018
    Likes Received:
    Hey, BHW

    I am looking for Python code that can scrape multiple public IG photos (using the links to the photos) and get the following info:

    - list of usernames who liked the photo
    - list of usernames who commented on the photo, including what they commented and specifically counting the number of words in the comment

    I've searched GitHub, but I haven't found exactly what I'm looking for. I know I should probably use Scrapy, but I'm not sure how to implement the specifics of what I want. I have also been researching this for months, and I am stuck. Sorry if this is a rudimentary question.

    I appreciate any and all help. I have just a bit of knowledge of python.

    Thanks in advance!