requests library is a powerful python package for http. You can use it to fetch web pages, and do anything as the http verbs can do. To use requests, install […]

import can be used independently: import module import package It can be used to import a module, a package, or . concated module/packages. import package.module import package1.package2 import package1.package2.module But […]

I often got confused about JSON and JSON string. JSON is the code you write in your javascript script to represent an object, so the code is called JavaScript Object […]

I encountered a strange problem of php curl. I use curl to fetch a remote web page as follows: $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, “”); curl_setopt($curl, CURLOPT_HEADER,1); curl_setopt($curl, CURLOPT_FRESH_CONNECT,1); curl_setopt($curl, […]