PHASE: Python for Analysts33% COMPLETION
MODULE 11
Automating OSINT
Building Python scrapers and using APIs for data collection.
Python for Analysts
Manual clicking is slow. Scripts scale your capability.
import requests
from bs4 import BeautifulSoup
url = 'https://target-site.com'
response = requests.get(url)
soup = BeautifulSoup(response.text, 'html.parser')
print(soup.title.string)
The above script fetches a webpage and prints its title. It takes 0.2 seconds.