<commit_before>#! /usr/bin/env python
# -*- coding: utf-8 -*-

# install the requiremnts,modfiy the wcg account id of the wcgid below.
# pip install lxml
# pip install requests
# pip install beautifulsoup4

import requests
import datetime
from bs4 import BeautifulSoup

def getpoint(url):

    page = requests.get(url)
    soup = BeautifulSoup(page.text)

    rows = soup.find('table').findAll('tr')[1:]
    for row in rows:
        columns = [data.text for data in row.findAll('td')[0:-1]]
        todays = datetime.datetime.now().strftime('%b %d, %Y')
        if columns[0] == todays:
            print columns[0]+'\t\t'+columns[1]+'\t\t'+columns[2]

cfgurl = 'https://www.computingforgood.org/stats/member/'
wcgid = [866331,866332,866333,866334]

for w in wcgid:
    getpoint(cfgurl+str(w))

<commit_msg>top 3 winner<commit_after>#! /usr/bin/env python
# -*- coding: utf-8 -*-

# Usage :
#   install the requiremnts,modfiy the wcg account id of the wcgid below.
#   pip install lxml
#   pip install requests
#   pip install beautifulsoup4
#
# Author : <NAME> <<EMAIL>>
# Donate : Ripple address : r3zJeqaGN3NeHqHufNypUGnnjahJKnKMAJ

import requests
import datetime
from bs4 import BeautifulSoup

def getpoint(url):

    page = requests.get(url)
    soup = BeautifulSoup(page.text)

    rows = soup.find('table').findAll('tr')[1:]
    for row in rows:
        columns = [data.text for data in row.findAll('td')[0:-1]]
        todays = datetime.datetime.now().strftime('%b %d, %Y')
        if columns[0] == todays:
            print columns[0]+'\t\t'+columns[1]+'\t\t'+columns[2]

cfgurl = 'https://www.computingforgood.org/stats/member/'
wcgid = [866331,868931,864681]

for w in wcgid:
    getpoint(cfgurl+str(w))


{'fraction_non_alphanumeric': 0.1496796738497379, 'fraction_numerical': 0.0378567268491555, 'mean_word_length': 3.485639686684073, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4952867', 'n_tokens_mistral': 662, 'n_tokens_neox': 620, 'n_words': 148}