In [4]:
import requests
from bs4 import BeautifulSoup
In [21]:
ascl = BeautifulSoup(requests.get('http://ascl.net/code/all/limit/931').text, 'html5lib')
abstracts = ascl.find('div', 'codelist').find_all('div', 'abstract')
In [47]:
def search_abstracts(term):
    term = term.lower()
    return [a for a in abstracts if term in str(a).lower()]
In [56]:
for language in ['c++', 'idl', 'python', 'fortran', 'matlab', 'lisp', 'perl', 'java']:
    print "%20.20s %i" % (language, len(search_abstracts(language)))
                 c++ 56
                 idl 105
              python 92
             fortran 102
              matlab 5
                lisp 0
                perl 18
                java 23
In [ ]: