+ 1

How to connect a python program to a website to get information?

For example I want to connect to AccuWeather.com to get temperaturem of a city through Python program. Then how to do it?

7th Nov 2019, 9:05 AM
Gh0stR
Gh0stR - avatar
6 odpowiedzi
+ 1
What you want to do is web scrapping, in python beatiful soup library will make what you want. Learn how to use it and give it a try.
7th Nov 2019, 1:28 PM
Enzo Falcon
Enzo Falcon - avatar
+ 1
7th Nov 2019, 5:02 PM
OR!ON 🛡️
OR!ON 🛡️ - avatar
+ 1
The code requests this page "https://favqs.com/api/qotd" and then parses the json response into dictionary...Simple 😉 You can also open this url in a web browser to see the json response.
8th Nov 2019, 11:16 AM
OR!ON 🛡️
OR!ON 🛡️ - avatar
0
Enzo Falcon i will give it a try thanks!
8th Nov 2019, 11:07 AM
Gh0stR
Gh0stR - avatar
0
OR!ON 🛡️ would you please explain your code?
8th Nov 2019, 11:08 AM
Gh0stR
Gh0stR - avatar
0
OR!ON 🛡️ ok, i appreciate your help! Thanks!
8th Nov 2019, 11:20 AM
Gh0stR
Gh0stR - avatar