Read project info from ADOPTME.md
If a project is added by adding the URL to an ADOPTME.md file in a repository on GitHub, it's added by parsing the file for info about the contact and the category and taking the rest from the GitHub API.
An example for an ADOPTME.md file is at https://raw.githubusercontent.com/cornelius/kode/master/ADOPTME.md
It would be nice to add a link to the ADOPTME.md in the web interface, so that people can directly go to the detailed info about how to adopt the project.
Thanks, @cornelius, for sharing this!
A few things:
- Can you fix the
configparserreferences to beConfigParser(it seems it is case dependent). - This seems to be mixing a few versions of
urllib- can you standardize on one. - This uses a
githubimport, but I couldn't figure out a way to install it. It is not installable frompip. How do I get this?
Thanks!
I'm not an expert in Python, so I basically fiddled around until I had this sketch of code working. I believe it's the difference between Python 2 and 3, which results in the lower-case names for the modules. I ran it with python3 adopt-queue.py and this worked on my system. Does it work for you if you use Python 3?
I installed the github module with pip install PyGithub.