Web Scraping with HTTP APIs: A Practical Guide to Data Extraction

While traditional web scraping often involves parsing HTML content, there's a more efficient approach: directly accessing data through HTTP APIs. Since most modern web services expose their data via RESTful APIs that typically use JSON format, this tutorial will explore how to extract data by making direct API calls. For those unfamiliar with R ...

Posted on Sat, 04 Jul 2026 17:49:05 +0000 by xdentan

Essential Java API Utilities and Algorithmic Patterns

Mathematical and System-Level Operations The java.lang.Math class provides immutable static methods for basic numerical computations. Since all members are static, invocation occurs via the class name. Key utilities include absolute value calculation, ceiling/floor rounding, maximum/minimum selection, exponentiation, and pseudo-random number ge ...

Posted on Mon, 29 Jun 2026 16:21:55 +0000 by Ruzzas

Implementing Real-Time Communication with WebSocket and Socket.io

WebSocket is a sophisticated communication protocol that facilitates full-duplex, persistent connections between a client and a server. Unlike the standard HTTP protocol, which follows a request-response pattern initiated solely by the client, WebSocket allows for a continuous flow of data in both directions simultaneously. Native WebSocket Imp ...

Posted on Sun, 28 Jun 2026 16:04:56 +0000 by sprinkles

Python Requests Library for HTTP Operations

Installation Install the library via pip: pip install requests For unstable networks, specify a mirror source: pip install requests -i https://pypi.mirrors.ustc.edu.cn/simple/ Available mirrors include: Tsinghua University: https://pypi.tuna.tsinghua.edu.cn/simple Alibaba Cloud: http://mirrors.aliyun.com/pypi/simple/ University of Science an ...

Posted on Tue, 23 Jun 2026 16:28:07 +0000 by bobbfwed

Model Serialization in Django Using the serializers Module

Transforming model instances into other formats such as JSON or XML is a core capability needed when exposing APIs or exchanging data between systems. In Django, the built-in django.core.serializers module provides a straightforward way to convert querysets into serialized representations with out requiring extra dependencies. Basic Usage To pr ...

Posted on Mon, 22 Jun 2026 17:59:28 +0000 by webwired

Handling Shopee API Authentication and Token Lifecycle

The Shopee Open Plaftorm mandates a specific procedure for application authorization and token management. All request to partner endpoints must include a valid signature generated from the partner key and the request path. Signature Computation A signature is derived using the HMAC-SHA256 algorithm. The input is a base string consisting of the ...

Posted on Sun, 21 Jun 2026 16:31:45 +0000 by webtech123

Comparing Solutions for Frontend Cross-Origin Resource Sharing Issues

Cross-origin resource sharing (CORS) challenges are a common obstacle in frontend development. Modern web security policies enforce same-origin restrictions, but several techniques exist to overcome these limitations. Understanding Same-Origin Policy Browser security mechanisms prevent scripts from accessing resources outside their origin domai ...

Posted on Fri, 19 Jun 2026 16:55:55 +0000 by Kazhultee

Calculating Future Dates by Adding Days to Current Time in Java

Adding Days to Current Date in Java When working with date calculations in Java applications, a common requirement is to determine a future date by adding a specific number of days to the current date. This is particualrly useful in scenarios like scheduling events, calculating expiration dates, or processing time-sensitive transactions. Implem ...

Posted on Sun, 07 Jun 2026 16:45:51 +0000 by IWS

Configuring Axios Base URL and Request Headers in Vue.js

Creating an HTTP Configuration Module First, create an http.js file to store the server configuration and request interceptors. import axios from "axios"; const apiInstance = axios.create({ baseURL: 'https://your-api-domain.com', timeout: 15000 }); apiInstance.interceptors.request.use((config) => { const storedToken = ...

Posted on Thu, 04 Jun 2026 18:35:14 +0000 by henryhund

User Management API Documentation

User Count Retrieval Endpoint POST /api/users/count Parameters Name Type Required Description query string No Search by username or phone active string No Filter: all, true, false Response { "status": 200, "result": { "totalUsers": 150 } } User List Retrieval Endpoint POST /api/users Parame ...

Posted on Thu, 04 Jun 2026 18:26:50 +0000 by racing_fire