Stories from the Web Crawling trenches in sockets

How to Build a Super Simple HTTP Proxy in Perl in just 20 lines of code

Author: Mohan Ganesan

Date: Oct 1, 2023

Build a basic HTTP proxy server in Perl using less than 20 lines of code. Use rotating proxy service to avoid IP blocking.

Serving HTTP Requests Efficiently with aiohttp's TCPServer

Author: Mohan Ganesan

Date: Mar 3, 2024

The aiohttp Python library provides powerful tools for building asynchronous HTTP services. TCPServer is a key component that handles details like accepting connections, reading/writing data, and closing connections. It supports HTTPS, handles concurrent connections efficiently, and is useful for microservices and API backends.

What is the difference between socket and Urllib?

Author: Mohan Ganesan

Date: Feb 8, 2024

Sockets offer low-level network access, but can be complex. urllib makes HTTP requests simple, but with less flexibility.

Leveraging Sockets for Network Communication in Python

Author: Mohan Ganesan

Date: Feb 8, 2024

Sockets in Python provide a low-level networking interface for sending and receiving data across networks and the internet.

What is a socket in Python?

Author: Mohan Ganesan

Date: Feb 20, 2024

Sockets are a key concept in network programming that allow communication between processes or applications. In Python, sockets are enabled through the socket library. Client sockets are used to initiate communication with a server, while server sockets listen for incoming connections. Sockets enable bidirectional communication through sending and receiving data, and can handle multiple client connections concurrently.

Leveraging Sockets for Effective Network Communication in Python

Author: Mohan Ganesan

Date: Feb 20, 2024

Sockets in Python enable low-level network communication, providing bidirectional communication, support for multiple protocols, portability, and an accessible API.

Tired of getting blocked while scraping the web?

ProxiesAPI handles headless browsers and rotates proxies for you.
Get access to 1,000 free API credits, no credit card required!