import sys
from urllib.request import Request, urlopen
import urllib.request, urllib.parse, urllib.error
from bs4 import BeautifulSoup
query = 'pokerbonus'
url = 'http://www.google.de/search?q=%s' % urllib.parse.quote_plus(query)
req_google = Request(url)
req_google.add_header('User-Agent',
    'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB;    rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3'
    )
html_google = urlopen(req_google).read()
soup = BeautifulSoup(html_google)
scounttext = soup.find('div', id='resultStats')
print(scounttext)
очистить статистику результатов Google с помощью python