Scraping Instagram with BeautifulSoup

前端 未结 1 1915
春和景丽
春和景丽 2021-01-29 05:18

I\'m trying to get a particular string from the \"search by tag\" in Instagram. I\'d like to get the url img from here:

\"#yeşil

        
1条回答
  •  借酒劲吻你
    2021-01-29 05:53

    The reason you can't see any output is that the images are added dynamically to the page source using JavaScript. So, the HTML that you've provided isn't available in the page source. Easiest way to overcome this is to use Selenium.

    But, there's one more way to scrape that. Looking at the page source, the data you're after, is available in a

提交回复
热议问题