Ckrielle / liblove

Give python libraries some love

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

liblove

Give your python libraries some love <3

Table of Contents

Gerenal Info

Purpose: This project goes to all the python libraries that carries our projects, the silver linings of endless google searches. After we download them we forget them and never care about them. This is what liblove fixes. It lists all of the pip packages you've installed ever, visits every single one of their github repos (if they have one), and stars them. It gives them some love <3

How: You need a username to access a repo with the github API. So I had to find a way to get the username to make the request. Luckily I was on pypi at that time, and observed that their url is of the for pypi.org/project/project. The script gets every library you have in tour system, sends a request to pypi, takes the text of the response, parses it into BeautifulSoup, which in turns finds the link to the github repo, remove the necessary characters so that only the name and project remain, adds them to the appropriate request for the API, and then sends it. Though you need to create a token for this to work. You can learn how to generate one here, and then add it in the appropriate variable in the script.

Installation

All you have to do is copy paste the commands below into your terminal.

git clone https://github.com/Ckrielle/liblove.git
cd liblove
pip install -r requirements.txt

Demonstration

Demo

To-Do

As you can see it is a simple script. I mainly want to see how I can implement oauth. If anyone would want to do it feel free to do so.

Donations

If for some reason you think I deserve money for having written this or any of my other projects, firstly thank you very much I'm humbled. Secondly you can buy me a penguin!

Buy Me A Coffee

Contact Me

You can find me on Twitter.

License

See LICENSE for more info.

About

Give python libraries some love

License:MIT License


Languages

Language:Python 100.0%