Skip to content

alfiepoleon/nation_unlocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nation unlocker

This is a simple project created with Python, flask and BeautifulSoup4

It fetches an article from Nation Kenya and removes the registration requirement as well as the ads.

Due to CORS, images are not displayed

It is made possible because they use classes to hide content from unregistered users, so removing those classes and changing some css unlocks everything.

To have the article saved in res folder as article.html uncomment the following in main.py

 with open("res/article.html", "w", encoding='utf-8') as file:
         file.write(soup_str)

Running

  1. Create and activate a python3 virtual env.

    python3 -m venv venv
    source venv/bin/activate
  2. Install pip packages

    pip install -r requirements.txt
  3. Run it

    python main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors