Anon-Exploiter / infosecinstitute-dl

A small and dirty python3 based script to download courses from Infosec Institute.
MIT License
10 stars 12 forks source link

[Feature] Print only courses which are accessible #14

Closed Anon-Exploiter closed 1 year ago

Anon-Exploiter commented 2 years ago

Issue Statement: Infosec has rolled out some free accounts with access to limited courses while the script prints almost all the courses.

If someone selects a course that isn't accessible to him and tries to download it, errors occur and aren't that verbose to tell that user.

image

image

Possible Solution: We can check if the user's account status is paid/trial and then only show him the courses accessible to him so he can choose between those and happily download em.

Anon-Exploiter commented 2 years ago

For now, if someone has an unpaid account or is on trial, only these look accessible:

image

{"items":[{"id":3957,"searchId":3957,"percent_complete":0,"name":"Cybersecurity Foundations","description":"Learn about cybersecurity concepts in the workplace.","formatted_time_estimate":"4 hours, 58 minutes","duration":"4 hours, 58 minutes","is_progress_trackable":true,"is_complete":false,"item_url":"https:\/\/app.infosecinstitute.com\/portal\/skills\/path\/3957","action_icon":"icon-start","is_assignable_to_path":false,"card_type":"path","card_title":"Skill Learning Path","card_icon":"path","can_user_blacklist":true,"is_assigned":false,"is_group_assignable":false,"is_removable":false,"is_removable_from_path":false},{"id":3967,"searchId":3967,"percent_complete":0,"name":"Cybersecurity Leadership and Management","description":"Learn the key objective elements of cybersecurity leadership.","formatted_time_estimate":"8 hours, 38 minutes","duration":"8 hours, 38 minutes","is_progress_trackable":true,"is_complete":false,"item_url":"https:\/\/app.infosecinstitute.com\/portal\/skills\/path\/3967","action_icon":"icon-start","is_assignable_to_path":false,"card_type":"path","card_title":"Skill Learning Path","card_icon":"path","can_user_blacklist":true,"is_assigned":false,"is_group_assignable":false,"is_removable":false,"is_removable_from_path":false},{"id":3587,"searchId":3587,"percent_complete":0,"name":"Digital Forensics Concepts","description":"Learn the theories and skills used by professional digital forensic examiners. ","formatted_time_estimate":"8 hours, 3 minutes","duration":"8 hours, 3 minutes","is_progress_trackable":true,"is_complete":false,"item_url":"https:\/\/app.infosecinstitute.com\/portal\/skills\/path\/3587","action_icon":"icon-start","is_assignable_to_path":false,"card_type":"path","card_title":"Skill Learning Path","card_icon":"path","can_user_blacklist":true,"is_assigned":false,"is_group_assignable":false,"is_removable":false,"is_removable_from_path":false},{"id":2952,"searchId":2952,"percent_complete":0,"name":"ICS\/SCADA Security Fundamentals ","description":"Learn industrial control systems, their environments, and regulatory standards\r\n","formatted_time_estimate":"5 hours, 49 minutes","duration":"5 hours, 49 minutes","is_progress_trackable":true,"is_complete":false,"item_url":"https:\/\/app.infosecinstitute.com\/portal\/skills\/path\/2952","action_icon":"icon-start","is_assignable_to_path":false,"card_type":"path","card_title":"Skill Learning Path","card_icon":"path","can_user_blacklist":true,"is_assigned":false,"is_group_assignable":false,"is_removable":false,"is_removable_from_path":false},{"id":5275,"searchId":5275,"percent_complete":0,"name":"Infosec Skills Monthly Challenge","description":"Ready to take the Infosec Skills Monthly Challenge? Accept and you\u2019ll receive a new mission every month: hands-on labs to test your cyber skills or learn something new. Complete all three labs, share your certificate of completion on LinkedIn and tag @Infosec for your chance to take home the monthly bounty. Nearly $1,000 in prizes are awarded every month to three randomly selected winners: $100 Amazon USD gift cards, Infosec hoodies and 1-year subscriptions to Infosec Skills.\r\n\r\nReady? Let\u2019s go! \r\n","formatted_time_estimate":"1 hour, 30 minutes","duration":"1 hour, 30 minutes","is_progress_trackable":true,"is_complete":false,"item_url":"https:\/\/app.infosecinstitute.com\/portal\/skills\/path\/5275","action_icon":"icon-start","is_assignable_to_path":false,"card_type":"path","card_title":"Skill Learning Path","card_icon":"path","can_user_blacklist":true,"is_assigned":false,"is_group_assignable":false,"is_removable":false,"is_removable_from_path":false},{"id":3954,"searchId":3954,"percent_complete":23,"name":"JavaScript Security","description":"Learn JavaScript-related attacks and how to build safer JavaScript applications. ","formatted_time_estimate":"10 hours, 3 minutes","duration":"10 hours, 3 minutes","is_progress_trackable":true,"is_complete":false,"item_url":"https:\/\/app.infosecinstitute.com\/portal\/skills\/path\/3954","action_icon":"icon-start","is_assignable_to_path":false,"card_type":"path","card_title":"Skill Learning Path","card_icon":"path","can_user_blacklist":true,"is_assigned":false,"is_group_assignable":false,"is_removable":false,"is_removable_from_path":false},{"id":1176,"searchId":1176,"percent_complete":0,"name":"Mobile Forensics Fundamentals","description":"Learn foundational knowledge of key mobile forensics concepts.","formatted_time_estimate":"5 hours, 49 minutes","duration":"5 hours, 49 minutes","is_progress_trackable":true,"is_complete":false,"item_url":"https:\/\/app.infosecinstitute.com\/portal\/skills\/path\/1176","action_icon":"icon-start","is_assignable_to_path":false,"card_type":"path","card_title":"Certification Learning Path","card_icon":"path","can_user_blacklist":true,"is_assigned":false,"is_group_assignable":false,"is_removable":false,"is_removable_from_path":false},{"id":3816,"searchId":3816,"percent_complete":0,"name":"Python for Cybersecurity","description":"Master the use of Python for a wide variety of cybersecurity tasks.","formatted_time_estimate":"12 hours, 14 minutes","duration":"12 hours, 14 minutes","is_progress_trackable":true,"is_complete":false,"item_url":"https:\/\/app.infosecinstitute.com\/portal\/skills\/path\/3816","action_icon":"icon-start","is_assignable_to_path":false,"card_type":"path","card_title":"Skill Learning Path","card_icon":"path","can_user_blacklist":true,"is_assigned":false,"is_group_assignable":false,"is_removable":false,"is_removable_from_path":false}],"paging":{"count":8,"countOnPage":8,"perPage":20,"pageNumber":1,"pageCount":1},"hasPagination":true}
Anon-Exploiter commented 1 year ago

Closing this, not implementing anytime soon.