Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
grabs browser and system information
#!/usr/bin/env python
# voidnill
# hackerb.it
# dont't send me mails. i hate you.
#
# [1] IP-Adress:
# [2] Internet Service Provider:
# [3] City:
# [4] State/Region:
# [5] Country:
# [6] Browser:
# [7] Operating System:
# [8] Screen Resolution:
#
# python3 ipgrap.py
# grabs browser and system information
import bs4 as bs
import urllib.request
sauce = urllib.request.urlopen('https://www.privateinternetaccess.com/pages/whats-my-ip').read()
soup = bs.BeautifulSoup(sauce, 'lxml')
print('your ip and browser information:\n')
for list in soup.find_all('span', class_='darktext'):
print(list.string)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment