Created
May 28, 2014 13:51
-
-
Save nnfuzzy/60112e2f307863b28453 to your computer and use it in GitHub Desktop.
This are only 50 , seems they have different urls. Anyway ,I'd like only avoid the click-mania,
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from bs4 import BeautifulSoup | |
import urllib2 | |
company_list = [] | |
for i in range(1,100): | |
try: | |
url = """ http://www.crn.com/slide-shows/applications-os/300072862/big-data-100-business-analytics.htm/pgno/0/{}/ """.format(i) | |
response = urllib2.urlopen(url) | |
soupstring = BeautifulSoup(response) | |
companydiv = soupstring.find('div', attrs={'class': 'node-content'}) | |
company = companydiv.find('strong') | |
company_str = str(company.contents[0]) | |
if company_str.count('img') > 0: | |
continue | |
else: | |
company_list.append(company_str) | |
except Exception, e: | |
continue | |
company_list | |
['1010data', | |
'Alpine Data Labs', | |
'Alteryx', | |
'Attivio', | |
'Ayasdi', | |
'Birst', | |
'Chartio', | |
'Cirro', | |
'ClearStory Data', | |
'Continuum Analytics', | |
'DataGravity', | |
'DataHero', | |
'Datameer', | |
'DataSift', | |
'Datawatch', | |
'Digital Reasoning', | |
'Domo', | |
'Gainsight', | |
'Glassbeam', | |
'GoodData', | |
'Google', | |
'Top Executive:', | |
'Information Builders', | |
'JasperSoft', | |
'Jut', | |
'Kognitio', | |
'LucidWorks', | |
'Metric Insights', | |
'MicroStrategy', | |
'Numerify', | |
'Palantir Technologies', | |
'Panorama Software', | |
'Paradigm4', | |
'ParStream', | |
'Pentaho', | |
'Platfora', | |
'QlikTech', | |
'Revolution Analytics', | |
'Rubikloud Technologies', | |
'SAP', | |
'SAS Institute', | |
'Seeq', | |
'SiSense', | |
'Splunk', | |
'Sqrrl', | |
'Sumo Logic', | |
'Tableau Software', | |
'Tibco Software', | |
'Via Science', | |
'Zoomdata'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment