![SFGate Scraper avatar](https://images.apifyusercontent.com/3glCdg_ABwx8RegTwowppXtyazv8ur1pFNJiJveNpeM/rs:fill:92:92/aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL0VxdWlkZW0vbmV3cy1hY3Rvci1jcmVhdG9yL21hc3Rlci9wbmd0cmVlLXZlY3Rvci1uZXdzcGFwZXItaWNvbi1wbmctaW1hZ2VfMTU3NzI4MC5qcGc.webp)
SFGate Scraper
DeprecatedView all Actors![SFGate Scraper](https://images.apifyusercontent.com/3glCdg_ABwx8RegTwowppXtyazv8ur1pFNJiJveNpeM/rs:fill:92:92/aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL0VxdWlkZW0vbmV3cy1hY3Rvci1jcmVhdG9yL21hc3Rlci9wbmd0cmVlLXZlY3Rvci1uZXdzcGFwZXItaWNvbi1wbmctaW1hZ2VfMTU3NzI4MC5qcGc.webp)
This Actor is deprecated
This Actor is unavailable because the developer has decided to deprecate it. Would you like to try a similar Actor instead?
See alternative Actors![SFGate Scraper](https://images.apifyusercontent.com/3glCdg_ABwx8RegTwowppXtyazv8ur1pFNJiJveNpeM/rs:fill:92:92/aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL0VxdWlkZW0vbmV3cy1hY3Rvci1jcmVhdG9yL21hc3Rlci9wbmd0cmVlLXZlY3Rvci1uZXdzcGFwZXItaWNvbi1wbmctaW1hZ2VfMTU3NzI4MC5qcGc.webp)
SFGate Scraper
mtrunkatova/sfgate-scraper
Scrape news data from sfgate.com with this unofficial API. Extract articles, monitor their popularity and performance and automate the fight against fake news. Filter the results by authors, topics, categories, or publication dates. Preview or download the results in your preferred format.
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://www.sfgate.com"
10 }
11 ],
12 "maxArticlesPerCrawl": 100
13}
14EOF
15
16# Run the Actor using an HTTP API
17# See the full API reference at https://docs.apify.com/api/v2
18curl "https://api.apify.com/v2/acts/mtrunkatova~sfgate-scraper/runs?token=$API_TOKEN" \
19 -X POST \
20 -d @input.json \
21 -H 'Content-Type: application/json'
Developer
Maintained by Community
Categories