Skip to content

Commit 2ffcda0

Browse files
committed
Add fake-useragent>=1.5.1 to scrape websites
1 parent 2e1d148 commit 2ffcda0

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,9 @@ robotframework~=7.4
3131
robotframework-datadriver
3232
robotframework-debuglibrary
3333
robotframework-requests
34+
35+
# Mobile automation (Appium Python client)
36+
Appium-Python-Client>=3.1.0
37+
38+
# Web scraping / HTTP utilities
39+
fake-useragent>=1.5.1

web_scraping/banners_hostname_ip_lookup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
gethostby_ = socket.gethostbyname(sys.argv[1])
1515
print("\nThe IP address of " + sys.argv[1] + " is: " + gethostby_ + "\n")
1616

17-
# ipinfo.io
18-
1917
req_two = requests.get("https://ipinfo.io/" + gethostby_ + "/json")
2018
resp_ = json.loads(req_two.text)
2119

0 commit comments

Comments
 (0)