Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitd6ff5e4

Browse files
committed
edited weather extractor tutorial
1 parentf11a0a6 commitd6ff5e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎web-scraping/weather-extractor/weather.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ def get_weather_data(url):
5858
# parse arguments
5959
args=parser.parse_args()
6060
region=args.region
61-
URL+=region
61+
ifregion:
62+
region=region.replace(" ","+")
63+
URL+=f"+{region}"
6264
# get data
6365
data=get_weather_data(URL)
6466
# print data

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp