Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 99b7a34

Browse filesBrowse files
author
irsol
committed
How to work with online files using python.
1 parent da62bb5 commit 99b7a34
Copy full SHA for 99b7a34

File tree

Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed

‎file_processing/online_file.py

Copy file name to clipboard
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import urllib.request
2+
3+
url = "https://github.com/irsol"
4+
web_page = urllib.request.urlopen(url)
5+
for line in web_page:
6+
line = line.strip()
7+
print(line)
8+
web_page.close()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.