Webscraping Instagram follower count BeautifulSoup
问题 I'm just starting to learn how to web scrape using BeautifulSoup and want to write a simple program that will get the follower count for a given Instagram page. I currently have the following script (pulled from another Q&A thread): import requests from bs4 import BeautifulSoup user = "espn" url = 'https://www.instagram.com/'+ user r = requests.get(url) soup = BeautifulSoup(r.content) followers = soup.find('meta', {'name': 'description'})['content'] follower_count = followers.split('Followers