fix error handling and remove unused method
When scraping/parsing fails, an error message is printed. 
The method getPublications() was not used.