Quora Question
Extrahieren Sie eine Quora-Fragenseite: vollständige Frage, alle Antworten mit Autor-Metadaten und verwandte Fragen.
API-Nutzung
Fügen Sie &scraper=quora-question zu einer Crawling API-Anfrage hinzu. URL-kodieren Sie die Ziel-URL im url-Parameter.
curl 'https://api.crawlbase.com/?token=YOUR_TOKEN' \
--data-urlencode 'url=https://www.quora.com/Which-is-the-best-tool-for-scraping-customer-reviews' \
--data-urlencode 'scraper=quora-question' -Gfrom crawlbase import CrawlingAPI
api = CrawlingAPI({'token': 'YOUR_TOKEN'})
res = api.get(
'https://www.quora.com/Which-is-the-best-tool-for-scraping-customer-reviews',
{'scraper': 'quora-question'}
)
import json
data = json.loads(res['body'])const { CrawlingAPI } = require('crawlbase');
const api = new CrawlingAPI({ token: 'YOUR_TOKEN' });
const res = await api.get(
'https://www.quora.com/Which-is-the-best-tool-for-scraping-customer-reviews',
{ scraper: 'quora-question' }
);
const data = JSON.parse(res.body);require 'crawlbase'
api = Crawlbase::API.new(token: 'YOUR_TOKEN')
res = api.get('https://www.quora.com/Which-is-the-best-tool-for-scraping-customer-reviews', scraper: 'quora-question')
data = JSON.parse(res.body)Beispiel-Eingabe-URL
Die im url-Parameter übergebene URL (zur besseren Lesbarkeit URL-dekodiert):
https://www.quora.com/Which-is-the-best-tool-for-scraping-customer-reviewsResponse-Struktur
JSON-Response-Body. Feldtypen können null sein, wenn die Quellseite den Wert auslässt.
Beispiel-Response
{
"question_title": "Which is the best tool for scraping customer reviews?",
"answer_count": 14,
"follower_count": 42,
"answers": [
{
"author_name": "John Smith",
"author_credentials": "Data Engineer",
"upvotes": 218
}
]
}