python crawler, climb some Hanfu girls as welfare

catalogue 1. Target site analysis 2. Page feed analysis 3,show code 4. Problem reply 5. Summary I wrote some reptiles in the past few days. I will leave some pictures in the welfare section at the end of my official account. A big time ago, a big girl said that he put more Han clothes and sisters. Today, it was just a little time for Bai ...

Added by PHPilliterate on Sat, 18 Dec 2021 09:35:55 +0200

How to batch crawl user information

First of all, the crawler is only used for testing. It's just for practicing hands. It won't be used for other purposes. At the beginning of the text, if I want to get the following information from the user. It's actually easier to request through request. Direct request Get user homepage url. The returned source code contains the details of ...

Added by php-phan on Fri, 17 Dec 2021 07:33:03 +0200

Reptiles are the most basic

Understanding HTTP & static web page crawling Request: request method, request URL, request header, request body (required by post method) import requests # Request methods include get, post, etc headers = { 'User-Agent':'Mozilla/5.0(Windows NT 10.0;Win64; x64) AppleWeb/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537. ...

Added by phprooky on Thu, 16 Dec 2021 20:12:42 +0200

Python example code for generating Jiugongge pictures

1, Foreword You should have seen in the circle of friends that a picture is displayed in the form of nine squares. The effect is roughly as follows: To achieve the above effect is very simple, we only need to intercept nine areas of the image. Today we will take you to use Python to realize the generation of Jiugong grid pictures. Before st ...

Added by Iceman18 on Thu, 16 Dec 2021 19:27:59 +0200

Inventory four methods of reading json files and extracting the contents of json files in Python

preface A few days ago, a fan asked a question about json file processing in the group. It seems that he only needs the corresponding values under the two fields of follower and ddate. We know that json is a common form of data transmission, so the relevant operations of json are more important for the data analysis of crawling data, whi ...

Added by jtp51 on Wed, 15 Dec 2021 19:32:55 +0200

The cookie verification of Python crawler theory. I don't know how the routine came without looking back on history!

At the beginning of the invention of cookie, in order to help the server synchronize the user information on the web page and save the user operation, so as to reduce the pressure on the server. Before there was no cookie, people still stayed in the same situation as TV, which could only broadcast on demand on Web pages, and websites could not ...

Added by areric on Tue, 14 Dec 2021 22:43:00 +0200

[JS reverse hundred examples] WebSocket protocol crawler, smart tree code scanning login case analysis

Focus on official account dry cargo WeChat public: K brother crawler, keep sharing crawler advance, JS/ Android reverse technology dry goods! statement All contents in this article are for learning and communication only. The packet capturing content, sensitive website and data interface have been desensitized. It is strictly prohi ...

Added by robertsamanek on Tue, 14 Dec 2021 04:28:02 +0200

Recently 'classmate Zhang' is so popular in Dy that I can't help analyzing his dy comment data in Python. I believe I can get angry one day

Recently, Jo Chang Zhang suddenly caught fire, and about ten million tiktok in two months. In today's article, I grabbed the comment data of classmate Zhang's video and wanted to dig out the points of interest to classmate Zhang from the perspective of text analysis. Classmate Zhang started sending videos on October 4, and the number of likes ...

Added by ahundiak on Tue, 14 Dec 2021 02:06:13 +0200

[Python basics] Python functions

1, Function is the most used object in python.Simple rules for function definition:1. Defined in def, followed by function name, parameter and colon. Format:2. The internal code block of the function needs to be indented3. Use return to return the function value. The default return value is NoneFormat:def function name (parameter):Code blockret ...

Added by tymlls05 on Mon, 13 Dec 2021 09:43:10 +0200

[Southeast Asia small language project] bilingual titles and bilingual abstracts of Thai documents

0. Introduce project objectives The project is based on the data set crawling task required for small language transfer learning in Southeast Asia, and the goal is to align the bilingual titles and abstracts of small language literature journals.The first step is to study the Thai data set. The target literature and journal websites are: h ...

Added by riceje7 on Sun, 12 Dec 2021 13:03:03 +0200