![GPT Scraper avatar](https://images.apifyusercontent.com/ujte8pV5oQq4Dquh3zoVXQv6as4oXKw8NsVRtAsjl0E/rs:fill:92:92/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9wYU90Ymp2eVVpTnNyMVFtcy84aHRpSFM4a25MVExONzd0Mi1HUFRfU2NyYXBlci5wbmc.webp)
GPT Scraper
Try for free
Pay $9.00 for 1,000 pages
View all Actors![GPT Scraper](https://images.apifyusercontent.com/ujte8pV5oQq4Dquh3zoVXQv6as4oXKw8NsVRtAsjl0E/rs:fill:92:92/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9wYU90Ymp2eVVpTnNyMVFtcy84aHRpSFM4a25MVExONzd0Mi1HUFRfU2NyYXBlci5wbmc.webp)
![GPT Scraper](https://images.apifyusercontent.com/ujte8pV5oQq4Dquh3zoVXQv6as4oXKw8NsVRtAsjl0E/rs:fill:92:92/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9wYU90Ymp2eVVpTnNyMVFtcy84aHRpSFM4a25MVExONzd0Mi1HUFRfU2NyYXBlci5wbmc.webp)
GPT Scraper
drobnikj/gpt-scraper
Try for free
Pay $9.00 for 1,000 pages
Extract data from any website and feed it into GPT via the OpenAI API. Use ChatGPT to proofread content, analyze sentiment, summarize reviews, extract contact details, and much more.
The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more
1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7 "startUrls": [
8 {
9 "url": "https://news.ycombinator.com/"
10 }
11 ],
12 "instructions": "Gets the post with the most points from the page and returns it as JSON in this format: \npostTitle\npostUrl\npointsCount",
13 "includeUrlGlobs": [],
14 "excludeUrlGlobs": [],
15 "linkSelector": "a[href]",
16 "initialCookies": [],
17 "proxyConfiguration": {
18 "useApifyProxy": true
19 },
20 "targetSelector": "",
21 "removeElementsCssSelector": "script, style, noscript, path, svg, xlink",
22 "schema": {
23 "type": "object",
24 "properties": {
25 "title": {
26 "type": "string",
27 "description": "Page title"
28 },
29 "description": {
30 "type": "string",
31 "description": "Page description"
32 }
33 },
34 "required": [
35 "title",
36 "description"
37 ]
38 },
39 "schemaDescription": ""
40}
41EOF
42
43# Run the Actor using an HTTP API
44# See the full API reference at https://docs.apify.com/api/v2
45curl "https://api.apify.com/v2/acts/drobnikj~gpt-scraper/runs?token=$API_TOKEN" \
46 -X POST \
47 -d @input.json \
48 -H 'Content-Type: application/json'
Developer
Maintained by Apify
Actor metrics
- 202 monthly users
- 39 stars
- 99.1% runs succeeded
- Created in Mar 2023
- Modified 1 day ago
Categories