gfog-floqast / tsl Goto Github PK
View Code? Open in Web Editor NEWTSL Badge Scraper
TSL Badge Scraper
ERROR:__main__:Check badge 'Gearhead' - error: 'NoneType' object has no attribute 'find_all'
Traceback (most recent call last):
File "tsl.py", line 37, in get_badge_requirement
requirements = self.get_requirements(session, page)
File "tsl.py", line 72, in get_requirements
return self.evaluate_requirements(session, requirements)
File "tsl.py", line 83, in evaluate_requirements
components = self.get_components(session, requirement)
File "tsl.py", line 91, in get_components
components = results.find_all('div', class_='ld-table-list-item')
AttributeError: 'NoneType' object has no attribute 'find_all'
Would like to get a Completion Score
at the TSL Level.
Requirements count should be done at the lowest level. IE: if a requirement has components, only count the components, not the requirement itself.
Badges_Complete | Percent_Badges_Complete | Requirements_Complete | Precent_Requirements_Complete |
---|---|---|---|
1 | 1.8% | 41 | 6.5% |
*NOTE: the above numbers are examples and not exact.
Would like to get a Completion Score
at the Badge Level.
Some badges do not require 100% completion so we should account for this.
Requirements count should be done at the lowest level. IE: if a requirement has components, only count the components, not the requirement itself.
Would like to see following information:
Badge_Name | Completed | Percent_Complete |
---|---|---|
Backyard Chef | True | 85% |
Craftsman | False | 50% |
ERROR:__main__:Check badge 'First Aid' - error: 'NoneType' object has no attribute 'find_all'
Traceback (most recent call last):
File "tsl.py", line 37, in get_badge_requirement
requirements = self.get_requirements(session, page)
File "tsl.py", line 72, in get_requirements
return self.evaluate_requirements(session, requirements)
File "tsl.py", line 83, in evaluate_requirements
components = self.get_components(session, requirement)
File "tsl.py", line 91, in get_components
components = results.find_all('div', class_='ld-table-list-item')
AttributeError: 'NoneType' object has no attribute 'find_all'
ERROR:__main__:Check badge 'Entrepreneurship' - error: 'NoneType' object has no attribute 'find'
Traceback (most recent call last):
File "tsl.py", line 34, in get_badge_requirement
badge_dict["Completion"] = "TRUE" if page.find(
AttributeError: 'NoneType' object has no attribute 'find'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.