
Weather Scraper
Pricing
$10.00/month + usage

Weather Scraper
Get data about weather forecasts or analyze conditions in any location in the world. This scraper downloads information about forecasts, humidity, temperature, wind, etc. and delivers it in HTML, JSON, XLSX, and more.
0.0 (0)
Pricing
$10.00/month + usage
4
Total users
255
Monthly users
4
Runs succeeded
>99%
Last modified
10 hours ago
You can access the Weather Scraper programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1from apify_client import ApifyClient2
3# Initialize the ApifyClient with your Apify API token4# Replace '<YOUR_API_TOKEN>' with your token.5client = ApifyClient("<YOUR_API_TOKEN>")6
7# Prepare the Actor input8run_input = {9 "startUrls": [10 { "url": "https://weather.com/weather/today/l/5aea1d50a6d6b9e99cf89ba79f463d67dcf21ea5061990aae1ffc1c7fa8911a9" },11 { "url": "https://weather.com/weather/today/l/ada030b2de8db495da2d93d5a2ecf30de1ce8b54cb09725d19c803543685646d" },12 ],13 "locations": [14 "Montgomery, Alabama",15 "Juneau, Alaska",16 ],17 "locationIds": [18 "e60256f3426acd3c1b3380921210fcffeab628a120c41d1de03b59a0f0dd32ad",19 "bf217d537cc1c8074ec195ce07fb74de3c1593caa6033b7c3be4645ccc5b01de",20 ],21 "timeFrame": "today",22 "units": "imperial",23 "maxItems": 10,24 "proxyConfiguration": { "useApifyProxy": True },25 "extendOutputFunction": "($) => { return {} }",26 "customMapFunction": "(object) => { return {...object} }",27}28
29# Run the Actor and wait for it to finish30run = client.actor("epctex/weather-scraper").call(run_input=run_input)31
32# Fetch and print Actor results from the run's dataset (if there are any)33print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])34for item in client.dataset(run["defaultDatasetId"]).iterate_items():35 print(item)36
37# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start
Weather Scraper API in Python
The Apify API client for Python is the official library that allows you to use Weather Scraper API in Python, providing convenience functions and automatic retries on errors.
Install the apify-client
$pip install apify-client
Other API clients include: