python learning: scratch + selenium crawling Taobao product information

Learning purpose: to use the framework of scratch to obtain dynamic website information. Take Taobao as an example, to obtain the [description, price, store, picture link] of goods and save the obtained information to execl table, or json file, database. Open Taobao homepage to search Yijia mobile phone, and get the url of t ...

Posted by mwood_2k2 on Mon, 06 Jan 2020 18:19:27 +0100

JavaScript code style

JavaScript code style 1. specification In order to agree on your code style, some relatively standard code style specifications have been born in the community: JavaScript Standard Style Airbnb JavaScript Style 2. ESLint ESLint only provides tools and rules, how to configure these rules depends on the user. This is ill ...

Posted by senyo on Mon, 06 Jan 2020 02:35:07 +0100

CentOS7 deploys docker version 19 (simple, follow up!)

1. Install dependency package [root@localhost ~]# yum install -y yum-utils device-mapper-persistent-data lvm2 2. Set alicloud image source [root@localhost ~]# yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo 3. Installing docker CE [root@localhost ~]# yum install -y docker-ce 4. Turn off firewal ...

Posted by kidsleep on Mon, 06 Jan 2020 00:40:28 +0100

Introduction to backup and recovery of mongodb

1. Introduction to installation environment: Installation environment for demo mongo:Binary installation package mongoDB3.6.16Grant mongodb the Super Administrator account: mongo --host 127.0.0.1 --port 6068 db.createUser({user: 'root', pwd:'TdLLQ6689', roles:[{role: 'root', db: 'admin'}]}); use admin db.auth("root","TdLLQ6689") Database build ...

Posted by raku on Sun, 05 Jan 2020 22:00:48 +0100

datatable style cells individually when rendering tables

Business requirement background: when rendering the table, judge whether the current cell value is modifiable according to the data. If it is modifiable, set the background color of the current cell to yellow. HTML code <div class="emissionsCon"> <h2 class="emissionsTitle">Data Reissue</h2> <table ...

Posted by skattabrain on Sun, 05 Jan 2020 12:51:31 +0100

[Spring Boot Unit Test] 1. Write unit tests

Writing unit tests can help developers write high-quality code, improve code quality, reduce bugs, and facilitate refactoring.Spring Boot provides utilities and annotations to help us test applications. Opening unit tests in Spring Boot requires only the introduction of spring-boot-starter-test, which includes some of the mainstream test librar ...

Posted by suzuki on Sat, 04 Jan 2020 18:59:07 +0100

JavaLib | use AOP to help you log

This time, let's go straight to the point. First step Using this module, you need to add package dependency: The second step You need to tell me your pointcut (inherit LBaseWebLogAspect, implement pointCut() method, and configure your pointcut) @Aspect @Component class WebLogAspect extends LBaseWebLogAspect { @Pointcut("execution(* com.fe ...

Posted by ryanlwh on Sat, 04 Jan 2020 11:04:36 +0100

JSON parsing network data

1. Set info to allow network requests 2. Find the interface file and run it to grimace 3.Appdelegate specifies the default root view, establishes the MVC management mode, establishes the model class, and customizes the cellXIB class, as shown in the model: This is mainly to find the corresponding object name in the grimace i ...

Posted by atoboldon on Sat, 04 Jan 2020 09:26:15 +0100

Android network framework OKHttp

Summary OKhttp is an open source project of network request. Android network request lightweight framework supports file upload and download, https, and contributed by mobile payment Square company. rely on compile 'com.squareup.okhttp3:okhttp:3.8.1' Get request Send synchronization request by Get OkHttpClient okHttpClient; Request ...

Posted by johnthedeveloper on Fri, 03 Jan 2020 21:29:32 +0100

[Json] common operation records of fastjson and jackson

This article only records some common operation methods of fastjson and jackson, but not for comparison. There are a lot of comparison articles written on the Internet. 1. Object to Json string // fastjson String objStr = JSON.toJSONString(obj); // The default attribute to be removed ...

Posted by Jack_Slocum on Fri, 03 Jan 2020 05:10:22 +0100