Facebook Profile
Extrahieren Sie ein öffentliches Facebook-Profil: Name, Profil- und Titelbilder, Berufs- und Bildungsverlauf sowie Vorschläge für ähnliche Namen.
Facebook-Scraper funktionieren am besten mit Ihrem JavaScript token.
API-Verwendung
Fügen Sie &scraper=facebook-profile zu einer Crawling API-Anfrage hinzu. URL-kodieren Sie die Ziel-URL im Parameter url.
curl 'https://api.crawlbase.com/?token=YOUR_TOKEN' \
--data-urlencode 'url=https://www.facebook.com/zuck' \
--data-urlencode 'scraper=facebook-profile' -Gfrom crawlbase import CrawlingAPI
api = CrawlingAPI({'token': 'YOUR_TOKEN'})
res = api.get(
'https://www.facebook.com/zuck',
{'scraper': 'facebook-profile'}
)
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.facebook.com/zuck',
{ scraper: 'facebook-profile' }
);
const data = JSON.parse(res.body);require 'crawlbase'
api = Crawlbase::API.new(token: 'YOUR_TOKEN')
res = api.get('https://www.facebook.com/zuck', scraper: 'facebook-profile')
data = JSON.parse(res.body)Beispiel-Eingabe-URL
Die im Parameter url übergebene URL (zur besseren Lesbarkeit URL-dekodiert):
https://www.facebook.com/zuckResponse-Struktur
JSON-Response-Body. Feldtypen können null sein, wenn die Quellseite den Wert nicht enthält.
school, degree, period.Beispiel-Response
{
"name": "Mark Zuckerberg",
"profile_image": "https://scontent.fbcd…/profile.jpg",
"intro": "Founder and CEO of Meta.",
"work": [
{
"employer": "Meta",
"title": "Founder & CEO",
"period": "Feb 2004 – present"
}
]
}