About Douban login and the method of input verification code

Recently, I want to learn the knowledge of analog login, so I have a simple login of Douban account. Here is the code: # -*- coding:utf-8 -*- '''Douban simulated landing, and achieved a state of hair''' import requests session = requests.session() header = {"Host": "www.douban.com", "Referer": "https://www.douban.com/", ...

Posted on Wed, 01 Apr 2020 21:17:46 -0700 by zTagged

Day066 mongodb easy to use

mongoDB mongoDB,nosql database, which stores values in key value format, is often used to store web data, and is the best choice for crawler data storage. Pre concept: RDBMS: it has clearly defined fields and structured data storage mode. It is the most important database type for data storage. Common RDBMS are ...

Posted on Wed, 01 Apr 2020 15:46:52 -0700 by ckehrer

Details of FormData usage

FormData object: 1, How to create a formData object instance 1. Create an empty object var formData = new FormData();//Add data through append method 2. Initializing an object using an existing form //Example of form <form id="myForm" action="" method="post"> <input type="text" name="name">Name ...

Posted on Wed, 01 Apr 2020 14:23:38 -0700 by rotwyla98

Using pagination of Jquery front-end paging plug-in

Plug in Description: jquery paging is a lightweight plug-in for jquery paging. Only a few simple configurations are required to generate paging controls. And support ajax to get data, custom request parameters, provide a variety of methods, events and callback functions, full-featured paging plug-in. Case pictures jQuery Pagi ...

Posted on Wed, 01 Apr 2020 14:11:03 -0700 by GetPutDelete

easyui authentication extension

Problem Description: As shown above: when users add information, they must ensure that a team can only have one piece of data a day. Therefore, when the report date is selected, you must query whether the data of the current team in the database exists. If it does not exist, i.e. the current date team has no data, data can be added; otherwise, ...

Posted on Wed, 01 Apr 2020 09:11:13 -0700 by mmponline

Array, json object, eval() function in JavaScript (4)

1, Arrays in JavaScript Arrays are created using [], new Array(), or new Array(count) After creating an array, we can initialize it statically or assign it dynamically Common attribute of array: length Common methods of array: toString(), join(), reverse(), push(), pop() <script type="text/javascript"> //in ...

Posted on Wed, 01 Apr 2020 03:07:39 -0700 by Salkcin

tree command installation under mac

Tree is a command that can list recursive directories. It graphically displays the folder structure of a drive or path, and can generate a command tree. Windows and Linux have both. mac does not have native support. You need to install tree or add. bashrc file in the home directory:alias tree="find . -print | sed -e 's; ...

Posted on Wed, 01 Apr 2020 01:47:05 -0700 by cvincent

Android: three minutes to achieve logistics distribution page (timeline effect)

Logistics distribution page. It is mainly implemented by RecycleView. The first article of the article shall be specially treated by judgment. Copy and paste in the future. The renderings are as follows: It can be realized by the relative position of each view. For example, the vertical line can be realized by im ...

Posted on Tue, 31 Mar 2020 21:32:11 -0700 by SidewinderX

Preload of sequenize

Preloading When you retrieve data from a database, you also want to get the query associated with it, which is called preloading. User.findAll({ include: [{ model: Tool, as: 'Instruments' }] }).then(users => { console.log(JSON.stringify(users)) /* [{ "name": "John Doe", "id": 1, "created ...

Posted on Tue, 31 Mar 2020 14:18:04 -0700 by mattw

Reseal fetch for RESTful

Because the RESTful API is used in the background and Token is used for authentication, it is better to encapsulate the fetch one more layer First define several constants Since there are two types of API requests: form and JSON, define the constant of ContentType first The RESTful API generally uses five methods: GE ...

Posted on Tue, 31 Mar 2020 10:12:32 -0700 by taquitosensei