selenium skips webdriver detection and crawls the data of Taobao I have purchased

brief introduction The previous blog has described how to use selenium to skip webdriver detection and crawl tmall's product data, so we will not talk about it in detail here, and you can view another blog if you need some ideas. source code # -*- coding: utf-8 -*- from selenium import webdriver from selenium.webdriver.common.by import By ...

Posted by Jaehoon on Mon, 02 Dec 2019 22:38:37 +0100

python calls java services

Background Python is famous for its fast development, flexibility and strong compatibility. In some cases, python needs to call code in other languages, such as a service that does not provide Python SDK, or the efficiency of Cpython's parsing and operation fails to meet the requirements, or other languages or frameworks are better ...

Posted by sabatier on Sat, 30 Nov 2019 19:25:11 +0100

Batch modification of excel files by python

Batch modification of excel by python In the morning, I suddenly got help from my little sister. How to use the program to delete the pictures in excel in batches? As a front-end dog, I felt a little frustrated. After all, this is not my specialty. Miss said python should be OK. google it now. It has been more than two years since I started to ...

Posted by tomhoad on Thu, 21 Nov 2019 13:12:45 +0100

Extracting json data using jmespath third-party module

In the work, it is often necessary to find the value of a key in json. If the json level is too deep, it is troublesome to use the dictionary's own get method. Here is a demonstration of the third-party module jmespath extracting json keys and values. pip install jmespath I. Basic operation Query the value corresponding to ...

Posted by jhbalaji on Thu, 14 Nov 2019 19:05:07 +0100

Automatic test based on web interface (based on HttpRunner+Fiddler)

1. Install Fiddler, please refer to http://together-learn.com/post/263 2. Install HttpRunner, the test I did in windows, precondition: install python and pip pip install httprunner 3. Record interface request through Fiddler 4. Export request session. har format file 5. The har file is converted to the test case file required by HttpRu ...

Posted by ssppllaatt on Thu, 14 Nov 2019 15:08:14 +0100

Simple use of its dangerous

Why use itsdangerous is to ensure that your encrypted data has not been modified, because the original data cannot be re solved after modification, and the content cannot be solved after timeout. Activate the application scenario and send an activated website to you. If you fail to activate within a cer ...

Posted by very_new_user on Sat, 26 Oct 2019 19:02:28 +0200

Django_Models field type and simple operation

# [1] Field # AutoField() self-increasing type, usually used on id, is not specified, and gradually ID is automatically added to the model # CharField(max_length=?) Character type must be given maximum length. The default form style is Text Input. # TextField() large text type, > 4000, default form s ...

Posted by fernyburn on Thu, 10 Oct 2019 21:02:24 +0200

Django uses haystack+whoosh to realize search function

In order to achieve the search function in the project, we use the full-text search framework haystack+ search engine whoosh+ Chinese word packet jieba install and configure Installation of required packages pip install django-haystack pip install whoosh pip install jieba Register haystack application to settings file INSTALLED_APP ...

Posted by tamayo on Tue, 08 Oct 2019 22:48:53 +0200

PySpider Problem Record http599

Links to the original text: http://www.cnblogs.com/sky_Great/p/7643036.html Brief description of problems Background note: python version 3.5.2 Operational procedures: 1. Perform pyspider installation: pip install pyspider 2. Run ...

Posted by konigwolf on Mon, 07 Oct 2019 03:45:54 +0200

python making wallpaper replacement program

I. Brief Introduction of Functions 1. Use reptile technology to climb up pictures from the network 2. Converting Pictures to. bmp Extension Type Pictures 3. Set Pictures to Desktop Wallpaper 4. Packaging into exe 5. Modify registry to create right-click shortcuts 6. Make the uninstall program, de ...

Posted by m3rajk on Fri, 04 Oct 2019 01:31:02 +0200