Crawler training project: get the movie with the highest score of Douban and download it

Previous review In the last blog, we learned four major libraries of Python crawlers: urlib, requests, beautiful soup and selenium Introduction to reptile common library Learn the common usage of urlib and request I learned how to use beautiful soup to parse web pages and selenium to drive browsers # We imported the web driver module from se ...

Posted on Wed, 04 Dec 2019 13:01:43 -0800 by lou28

Use of Bootstrap Table pagination and export of pagination data (Excel)

1: introduce the relevant links of the Bootstrap Table plug-in: it can be used directly here. If you want to download it locally, you can go to the official website to download it. <link href="https://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"> <!-- Introduce bootstrap-table style --&gt ...

Posted on Sun, 01 Dec 2019 15:26:00 -0800 by Tracekill

Batch generation of excel items that meet the rules

Demand scenario: 1. When the system needs to automatically register an account, Excel should be compiled according to the specification and then imported into the system. 2. It needs to be checked manually, or the results generated by using the functions of various websites are pasted into Excel for sorting. Idea: Using openpyxl module of Pyth ...

Posted on Sat, 30 Nov 2019 11:43:21 -0800 by justcrapx

java reading and generation of CSV file

CSV file is a comma separated value file format, which is usually opened with WORDPAD or notepad and excel. CSV (comma separated value) is a kind of plain text file used to store data. It is usually a file format used to store spreadsheets or data. It is very simple to read and generate CSV files. As long as (,) is used to cut during reading, c ...

Posted on Fri, 29 Nov 2019 10:02:38 -0800 by Mike521

120 lines of code crawling Douban film, with source code! Just take the release of the couplet 4 as an example!

Learn reptiles and practice with Douban movie. But Douban movie has anti climbing mechanism. After climbing 250, I will be redirected to log in. So I only climb the top 50 for related tests this time. I don't talk much. Let's look at the source code: 120 lines of code crawling Douban film, with source code! Just take the rel ...

Posted on Fri, 22 Nov 2019 10:19:29 -0800 by ReignFire

Using Python program to delete the pictures in excel in batches

Preface The text and pictures of the article are from the Internet, only for learning and communication, and do not have any commercial use. The copyright belongs to the original author. If you have any questions, please contact us in time for handling. By Rhinoceros PS: if you need Python learning materials, you can click the link below to get ...

Posted on Fri, 22 Nov 2019 06:51:46 -0800 by Bill_Draving

go file operation

Chapter document operation Basic introduction of the document Concept of documents File is not new to us. File is a kind of data source (the place where data is saved), such as the word document and txt document that we often use Files, excel files... Are files. The main function of file is to save data. It can save a picture, video and sound S ...

Posted on Tue, 19 Nov 2019 05:04:21 -0800 by subhuman

19. ddt data driven test

Background: Design test cases: some test cases are just different in parameter data input. For example, when you log in, you need to switch accounts frequently, and the operations are basically the same. If the use case repeatedly writes the operation process, it will lead to a lot of redundant code 1. Install ddt pip instal ...

Posted on Sun, 17 Nov 2019 14:28:45 -0800 by qrt123

Java export Excel template

In the project, we try to use the POI tool of Apache to generate Excel table And then I found that it was very easy to operate Post the code. There are notes in it. Common components: Document object of HSSFWorkbook excel HSSFSheet excel form Hssfrow excel lines Lattice unit of hssfcell Excel Hssffont excel font Style: Hssf ...

Posted on Sun, 17 Nov 2019 09:29:38 -0800 by nirali35

Import data from excel

Train of thought: (1) download the template to be imported (2) determine whether the imported file type is suffix:. xls 1. Get the read file; 2. Convert the file to binary array; 3. Convert the binary array to memory stream; 4. Use NPOI to read the data in memory stream into workbook Excel (3) worksheet in Workbook (4) worksheet ...

Posted on Fri, 15 Nov 2019 13:33:11 -0800 by Impius