import re
import requests
from bs4 import BeautifulSoup


def get_google_adsense(domain):
    r = requests.get("http://"+domain)
    soup = BeautifulSoup(r.content, 'html5lib')
    ca_pub_id = re.findall("ca-pub-\d*", str(soup))
    if len(ca_pub_id) > 0:
        return ca_pub_id[0]
    else:
        return None


print(get_google_adsense("devanagarifonts.net"))
a0e1722372814213bead03024f83fb11118fe3f0
<mask token>

<mask token>


def get_google_adsense(domain):
    r = requests.get('http://' + domain)
    soup = BeautifulSoup(r.content, 'html5lib')
    ca_pub_id = re.findall('ca-pub-\\d*', str(soup))
    if len(ca_pub_id) > 0:
        return ca_pub_id[0]
    else:
        return None


<mask token>

<mask token>


def get_google_adsense(domain):
    r = requests.get('http://' + domain)
    soup = BeautifulSoup(r.content, 'html5lib')
    ca_pub_id = re.findall('ca-pub-\\d*', str(soup))
    if len(ca_pub_id) > 0:
        return ca_pub_id[0]
    else:
        return None


print(get_google_adsense('devanagarifonts.net'))

import re
import requests
from bs4 import BeautifulSoup


def get_google_adsense(domain):
    r = requests.get('http://' + domain)
    soup = BeautifulSoup(r.content, 'html5lib')
    ca_pub_id = re.findall('ca-pub-\\d*', str(soup))
    if len(ca_pub_id) > 0:
        return ca_pub_id[0]
    else:
        return None


print(get_google_adsense('devanagarifonts.net'))

import re
import requests
from bs4 import BeautifulSoup


def get_google_adsense(domain):
    r = requests.get("http://"+domain)
    soup = BeautifulSoup(r.content, 'html5lib')
    ca_pub_id = re.findall("ca-pub-\d*", str(soup))
    if len(ca_pub_id) > 0:
        return ca_pub_id[0]
    else:
        return None


print(get_google_adsense("devanagarifonts.net"))