The requests module is simple to use

Catalog The requests module is simple to use A simple understanding of the requests module Use the requests module to crawl the source data of the first page of a search dog Implement a simple web page collector Solve garbled problems Solve UA detection problems Requs module crawls det ...

Posted by soianyc on Mon, 09 Sep 2019 18:45:48 -0700

How does Go implement protobuf encoding and decoding: source code

Links to the original text: https://mp.weixin.qq.com/s/oY... This is a companion article to analyze how Go implements protobuf encoding and decoding: How to Realize the Coding and Decoding of protobuf by Go (1): Principle How Go implements protobuf encoding and decoding (2): source code This edition is the second one. Preface Last article Ho ...

Posted by adt2007 on Mon, 09 Sep 2019 06:27:51 -0700

Python hashlib encryption module

hashlib module Introduction: hashlib module is a module that provides string encryption function, including MD5 and SHA encryption algorithm. Specific encryption support includes:MD5,sha1,sha224,sha256, sha384, sha512, blake2b,blake2s,sha3_224, sha3_256, sha3_384, sha3_512, shake_128, shake_256 This module is widely used in user login authent ...

Posted by june82 on Mon, 09 Sep 2019 04:30:37 -0700

Universal XSS in Edge Browser

Among all kinds of XSS vulnerabilities, uXSS can be said to be a very special category, it is related to browser or browser plug-ins, and has nothing to do with specific websites. It's like you have a very interesting XSS (under a browser) on all websites. In this article, I will describe the uXSS foun ...

Posted by hasitha on Mon, 09 Sep 2019 04:09:33 -0700

Requses request mode and basic usage of xpath parser

requests The urllib module in Python's standard library already contains most of the functions we normally use, but its API is not very good to use. Requests inherits all the features of urllib, and API is more convenient to use, which can simplify ...

Posted by gplaurin on Mon, 09 Sep 2019 02:44:06 -0700

Conquer Spring AOP --@AspectJ

Links to the original text: https://my.oschina.net/mohaiyong/blog/221283 Conquering Spring AOP-Schema Following the original example, the Schema mode is converted to @AspectJ mode. An ...

Posted by goatboy on Sun, 08 Sep 2019 22:28:50 -0700

Scrapy, write the first crawl problem summary

Original Link: https://my.oschina.net/GloryMK/blog/1842367 Because of python's outstanding performance in artificial intelligence, I have been exploring Python recently. I hope to have ...

Posted by rReLmy on Sun, 08 Sep 2019 20:05:37 -0700

TinyMCE Editor Picture Upload Extension (base64), asp.net mvc5

Editors usually upload pictures to the server first. If the user cancels or forgets to submit the form, it will produce a scrap map in the space, which will take up a lot of space in a long time. Now try to use base64 before submitting, and then process the < img > label src in the editor's content in the background. base64 images (saved ...

Posted by bivaughn on Sun, 08 Sep 2019 07:40:56 -0700

AutoEnocder and TensorFlow-2.0 Implementation Code

Auto-encoder Auto-encoder input feed-forward neural network is a kind of neural network, which uses the idea of sparse coding. Its goal is to reconstruct input by extracting high-order features, not just simple replication. Auto-encoder used to be ...

Posted by bapi on Wed, 04 Sep 2019 20:19:01 -0700

Java Basic Data Type Operations

Java Basic Data Types and Their Operations 1. Integer operations Four OperationsFor integer types, Java only defines signed integers, so the bit of the highest bit represents the symbol bit (0 is positive, 1 is negative).The maximum range that each integer can represent is as follows: byte: -128 ~ 127 short: -32768 ~ 32767 int: -2147483648 ~ ...

Posted by andymelton on Wed, 04 Sep 2019 18:41:46 -0700