
from bs4 import BeautifulSoup
import requests

URL="https://www.instagram.com/{}/"
def parse_data(s):
    data={}
    s=s.split("_")[0]
    s=s.split(" ")
    data['Followers']=s[0]
    data['Following']=s[2]
    data['Posts']=s[4]
    return data

def  scrape_data(username):
    r=requests.get(URL.format(username))
    s=BeautifulSoup(r.text, "html.parser")
    meta=s.find("meta",property="og: description")
    return parse_data(meta.attrs['content'])

if __name__ == '__main__':
    username="__jptattoo"
    data=scrape_data(username)
    print(data)

    ##-m pip install --upgrade pip
    #install exntensions
    #1]requests
    #2]BeautifulSoup
    
0c8437d39f9677a3a0bad001ae3edaaff83b071c
<mask token>


def parse_data(s):
    data = {}
    s = s.split('_')[0]
    s = s.split(' ')
    data['Followers'] = s[0]
    data['Following'] = s[2]
    data['Posts'] = s[4]
    return data


<mask token>

<mask token>


def parse_data(s):
    data = {}
    s = s.split('_')[0]
    s = s.split(' ')
    data['Followers'] = s[0]
    data['Following'] = s[2]
    data['Posts'] = s[4]
    return data


def scrape_data(username):
    r = requests.get(URL.format(username))
    s = BeautifulSoup(r.text, 'html.parser')
    meta = s.find('meta', property='og: description')
    return parse_data(meta.attrs['content'])


if __name__ == '__main__':
    username = '__jptattoo'
    data = scrape_data(username)
    print(data)

<mask token>
URL = 'https://www.instagram.com/{}/'


def parse_data(s):
    data = {}
    s = s.split('_')[0]
    s = s.split(' ')
    data['Followers'] = s[0]
    data['Following'] = s[2]
    data['Posts'] = s[4]
    return data


def scrape_data(username):
    r = requests.get(URL.format(username))
    s = BeautifulSoup(r.text, 'html.parser')
    meta = s.find('meta', property='og: description')
    return parse_data(meta.attrs['content'])


if __name__ == '__main__':
    username = '__jptattoo'
    data = scrape_data(username)
    print(data)

from bs4 import BeautifulSoup
import requests
URL = 'https://www.instagram.com/{}/'


def parse_data(s):
    data = {}
    s = s.split('_')[0]
    s = s.split(' ')
    data['Followers'] = s[0]
    data['Following'] = s[2]
    data['Posts'] = s[4]
    return data


def scrape_data(username):
    r = requests.get(URL.format(username))
    s = BeautifulSoup(r.text, 'html.parser')
    meta = s.find('meta', property='og: description')
    return parse_data(meta.attrs['content'])


if __name__ == '__main__':
    username = '__jptattoo'
    data = scrape_data(username)
    print(data)


from bs4 import BeautifulSoup
import requests

URL="https://www.instagram.com/{}/"
def parse_data(s):
    data={}
    s=s.split("_")[0]
    s=s.split(" ")
    data['Followers']=s[0]
    data['Following']=s[2]
    data['Posts']=s[4]
    return data

def  scrape_data(username):
    r=requests.get(URL.format(username))
    s=BeautifulSoup(r.text, "html.parser")
    meta=s.find("meta",property="og: description")
    return parse_data(meta.attrs['content'])

if __name__ == '__main__':
    username="__jptattoo"
    data=scrape_data(username)
    print(data)

    ##-m pip install --upgrade pip
    #install exntensions
    #1]requests
    #2]BeautifulSoup
    