Sometimes you may want to read the URLs in a file(line by line), and use it directly in a method such like http.client.HTTPConnection(url). In order to avoid a mistake, you need to delete the last char "\n" in each URL. So this is a simple example, the programe ReadUrlInFile.py reads the URLs in a file named "list", and sends HTTP requesets to these URLs using the module http.client. (You need to manually creat a file including the URLs line by line)
Project description
UNKNOWN
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ReadUrlInFile-1.2.6.tar.gz
(891 Bytes
view details)
File details
Details for the file ReadUrlInFile-1.2.6.tar.gz.
File metadata
- Download URL: ReadUrlInFile-1.2.6.tar.gz
- Upload date:
- Size: 891 Bytes
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc99dd1e51d446f9ae1e4f8b03310455ad9d707205cc4cb3725851a762b9851d
|
|
| MD5 |
66c78c104f21a2e0a20cb644cfcc66fe
|
|
| BLAKE2b-256 |
322675e6439d15eef16689e0064691397d31ca05df8e476bcf4be8736e566db3
|