Skip to content

Uma api para aceder a artigos premium do observador sem assinatura. Já entrei em contacto com um dos engenheiros do observador. Não têm planos para resolver este bug tão cedo. Por isso fica aqui.

License

Notifications You must be signed in to change notification settings

Laxnring/observador

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Observador

Since the "Observador" news outlet doesn't implement proper verification while using its api to fetch news articles, this Python snippet uses it to generate a page similar to the outlet's landing page.

The api call has been reverse-engineered using the Fiddler Tool with an iOS device and is repeated by the python script to fetch all the main articles on display. This bypasses the "premium" detection (these articles can only be read by paid subscribers or free users with premium articles left in the current month). It downloads them to the working directory of the script and creates an index.html file for easier navigation through the articles. Using a simple Python webserver it can quickly be deployed and accessed across the network.

Run:

python ./observador.py

Spinning up a simple HTTP server using twistd:

twistd -n web --path="./observador"

Disclaimer

I'm not in any way affiliated with Observador, nor do I have any nefarious intents. This small project is supposed to highlight a critical flaw in the design of the platform which may affect the outlet's business model. Therefore, and in defense of free speech and the maintenance of one of the most respected Portuguese news outlets, I would prefer to have this flaw in their code fixed over this script being used.

About

Uma api para aceder a artigos premium do observador sem assinatura. Já entrei em contacto com um dos engenheiros do observador. Não têm planos para resolver este bug tão cedo. Por isso fica aqui.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages