Pirate-Parties-International / PPI-rest-api

PPI main api acting as central party information
http://api.piratetimes.net
8 stars 2 forks source link

handling missing/deleted social media pages #53

Closed j-h-s closed 7 years ago

j-h-s commented 7 years ago

Scraper currently breaks if a social media page is not at the address we have. e.g.: Piratenpartei.NOE - Exception: Unsupported get request. Object with ID 'Piratenpartei.NOE' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api

We need to verify each page before we start requesting data.

Related: #40

j-h-s commented 7 years ago

Only throws an exception if scraping for one data type on FB (posts, images, etc.)