Browse Source

slug support

master
parent
commit
3e5c93637f
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      scraper.py

+ 2
- 0
scraper.py View File

@@ -18,6 +18,7 @@ class PluralsightPath:
self.id = id
self.link = link
self.title = ""
self.slug = ""
self.course_links = []


@@ -40,6 +41,7 @@ def process_path(link_dict) -> PluralsightPath:
title = soup.find('title').string.replace("| Pluralsight", "").rstrip()

pluralsight_path.title = title
pluralsight_path.slug = pluralsight_path.link.replace("https://www.pluralsight.com/paths/","")

for link_node in soup.findAll('a', href=True):
link_dict = str(link_node['href'])

Loading…
Cancel
Save