Python crawler - Prince oriented programming.

Python web crawler and information extraction. Article directory Python web crawler and information extraction. Tools. Requests library. Installation. Main methods of Requests library. requests.request() GET() method. Two important objects of Requests library. The Response object returns the c ...

Added by flyingeagle855 on Sun, 15 Mar 2020 13:36:59 +0200

Should I use alias or alias? Method?

I found a blog post about alias alias_method. As the example in this blog post shows, I just want to alias another method in the same class. Which should I use? I always see using alias, but someone told me that alias_method is better. Use of aliases class User def full_name puts "Johnnie Walker" end alias name full_name end ...

Added by rosegarden on Fri, 28 Feb 2020 11:58:23 +0200

Travis CI monitors github warehouse changes and deploys to ECS

Preface In the previous blog, we mainly talked about how to deploy hexo to the cloud server locally, but we don't want to write an md file locally and then deploy the server once. How to deploy it automatically?The answer is Travis CI thinking 1. Create a new public warehouse in our github warehous ...

Added by wit77 on Sun, 23 Feb 2020 08:46:21 +0200

Use a cURL with a username and password?

I want to access a URL that requires a username/password.I want to try it curl Access it.Now I'm doing something similar: curl http://api.somesite.com/test/blah?something=123 I got an error.I think I need to specify a username and password as well as the above commands. How can I do this? ...

Added by amirbwb on Fri, 31 Jan 2020 05:06:12 +0200

[Cocoapods] installation and use of the third-party library management tool Cocoapods

Reprint address: https://www.jianshu.com/p/9727434520b0 brief introduction CocoaPods is a tool responsible for managing the third-party open source code in iOS projects. Using CocoaPods can save time and improve work efficiency in setting up and updating the third-party open source library. How to ...

Added by Parody on Thu, 16 Jan 2020 10:14:59 +0200

Several pits synchronized to ES using logstash

1. Preface Record several issues encountered when using logstash to synchronize data from sqlserver to ES.Version used is es6.8.3+logstash6.8.3 2.logstash profile 2.1input input { jdbc { jdbc_driver_library => "/usr/local/logstash-6.8.3/logstashconfs/sqljdbc4.jar"#Driver jar package for sqlserver jdbc_driver_clas ...

Added by jarvishr on Sat, 11 Jan 2020 05:04:10 +0200

pod install abort perfect solution

Background: Updated system 10.12.6, Xcode 9, IOS 11.0.1 Error: pod install abort To solve reverse push: you need to upgrade Ruby Version to 2.2.2; you need to upgrade Homebrew Version (uninstall and reinstall); you need to upgrade common line tools; Step 1: install HomeBrew / uninstall the update #Why update HomeBrew? // ...

Added by jej1216 on Mon, 06 Jan 2020 01:22:23 +0200

Installation and deployment of Redis under Linux CentOS + Construction of Redis pseudo cluster

redis Download: http://download.redis.io/releases/redis-4.0.10.tar.gz Decompress, compile and install //Extract to local directory # tar -xvf redis-4.0.10.tar.gz -C /usr/local/ //Navigate to the unzip directory # cd /usr/local/redis-4.0.10/ //Perform compilation and installation, PREFIX must be uppercase # make install ...

Added by Smackie on Fri, 03 Jan 2020 16:06:31 +0200

Redis cluster command line deployment tool

Preparation before use: 1) Configure the public redis.conf file unrelated to the port, and place it in the same directory as the tool 2) Configure the PORT related template redis-PORT.conf file, and put it in the same directory as the tool (PORT will be replaced with specific PORT number during deployment) 3) Configure the node ...

Added by tony.j.jackson@o2.co.uk on Thu, 02 Jan 2020 08:13:53 +0200

Redis 4.0.9 cluster expansion

I. Experimental Environment 1. System version: Centos 7.6 x86 64 2. Redis version 4.0.9 3. Cluster IP information 172.16.100.201  172.16.100.202  172.16.100.203 4. IP information ready to join the cluster 172.16.100.204  172.16.100.205  172.16.100.206 5, purpose Expand the 3 primary and 3 secondary nodes of Redis cluster to 6 primary and ...

Added by kyin on Tue, 10 Dec 2019 20:29:22 +0200