![]() If you can make a list of bioinformatic repos to scan, pop this function in a loop and aggregate the data :) I couldn't get the code usage stats via the github api unfortunately, so scraping html was all i could do. Will return an empty dict if the github repo doesnt exist. It can either return either a dict of langauge_names:raw_counts, or it can just print it (with percentages): > stats = get_stats(' ',True) Tree = (requests.get(github_url + '/search?l=markdown').content)įor language in = language.getparent().itertext() Here's a little python function that will scrape github for the code usage statistics: def get_stats(github_url,pretty=False): ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |