Web Scraper avatar
Web Scraper

Pricing

$35.00 / 1,000 results

Go to Apify Store
Web Scraper

Web Scraper

Developed by

Futurize Rush

Futurize Rush

Maintained by Community

Simple web scraper. Extract titles, paragraphs, links, images, tables and more from websites. Supports custom CSS selectors and batch collection. For large needs, try Apify's Web Content Crawler.

0.0 (0)

Pricing

$35.00 / 1,000 results

2

3

3

Last modified

2 days ago

You can access the Web 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 ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4# Replace '<YOUR_API_TOKEN>' with your token.
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7# Prepare the Actor input
8run_input = {
9 "startUrls": [
10 { "url": "https://apify.com/futurizerush" },
11 { "url": "https://rush.zeabur.app/" },
12 { "url": "https://www.threads.com/@futurizerush" },
13 ],
14 "maxRequestsPerCrawl": 10,
15 "maxConcurrency": 3,
16 "smartMode": True,
17 "cacheEnabled": True,
18 "extractionRules": {
19 "article_title": "h1.post-title, h1.article-title, h1.entry-title",
20 "article_content": "article, main, .post-content, .article-content",
21 "author": ".author-name, .by-author, .post-author",
22 "publish_date": "time, .post-date, .publish-date",
23 "category": ".category, .post-category",
24 "tags": ".tags a, .post-tags a",
25 },
26 "customData": {
27 "source": "Apify Actor",
28 "scraped_by": "@futurizerush",
29 "language": "en-US",
30 },
31 "waitForSelector": "",
32 "scrollToBottom": False,
33 "pageLoadTimeoutSecs": 25,
34 "blockResources": [],
35}
36
37# Run the Actor and wait for it to finish
38run = client.actor("futurizerush/web-scraper").call(run_input=run_input)
39
40# Fetch and print Actor results from the run's dataset (if there are any)
41print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
42for item in client.dataset(run["defaultDatasetId"]).iterate_items():
43 print(item)
44
45# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

Web Scraper API in Python

The Apify API client for Python is the official library that allows you to use Web Scraper API in Python, providing convenience functions and automatic retries on errors.

Install the apify-client

$pip install apify-client

Other API clients include: