
Scraping Dark Web Sites with Python
Source: YouTube · John Hammond · published Apr 9, 2024 · 19:31
This video demonstrates how to automate interactions and scrape data from Tor hidden services using command-line tools and Python, enabling efficient collection of threat intelligence from the dark web 0:06-0:29.
Key Takeaways:
• To interact with Tor hidden services, install the Tor service and configure the control port in the torrc file, which allows tools like torify to tunnel traffic through the network 0:51-1:30.
• Direct command-line access to onion addresses is possible using curl by specifying a SOCKS5 proxy on port 9050, allowing users to retrieve HTML content without a graphical browser 8:00-9:02.
• Automation in Python is achieved using the requests_tor library, where a session object is initialized with the proxy and control ports to make standard HTTP requests to onion URLs 9:35-12:08.
• This technique is practical for monitoring ransomware leak sites and threat intelligence feeds, such as tracking updates from groups like ALPHV or Black Cat to identify data breaches or scams 13:00-14:02.
The tutorial provides a foundational guide for accessing and scraping Tor hidden services, essential for tracking cyber threats without manual browsing.
Sources:
- 0:06-0:29 Introduction to automating interactions with Tor hidden services
- 0:51-1:30 Configuring Tor service and using
torify - 8:00-9:02 Using
curlwith SOCKS5 proxy to access onion sites - 9:35-12:08 Python automation using
requests_tor - 13:00-14:02 Monitoring
Generate CPE Credits
Generate a professional CPE document from this video's transcript.
Estimated credit: 0.5 CPE hours
Estimate uses the video runtime (1 hour ≈ 1 CPE, rounded to the nearest 0.5, minimum 0.5, maximum 2.0). The final amount can be lower after review, never higher.
Topic: Cybersecurity. Commonly maps to: Security and Risk Management, Security Operations. Exact CISSP domains are assigned during generation.
Free account. One generation at a time, with a daily limit.
CPEBuddy is independent and not affiliated with or endorsed by ISC2, ISACA, or any certification body. Exports are formatted for common CPE submissions; acceptance is at your certification body's discretion.
Transcript Preview
First 800 characters of the transcript
hi I am out on travel so this is a hotel room video please don't hate me I'm sorry in a lot of other videos I've showcased how you can automate interactions with the website whether you're on the command line using tools like curl or in scripting languages like python where you can use libraries and packages modules like requests but I haven't showcased how we might be able to automate this or scrape different websites that might be in the dark web you using tour hidden services or do onion addresses so in this video that's what we're going to dive into thankfully this is really easy to do so I am inside of my Cali Linux virtual machine I'll hit Control Alt t on my keyboard to open up a terminal f11 to full screen zoom in to make this text a little bit easier for you to read and I will go …