Scraping Job categories and its sub categories

python

#1

Hi,

I am trying to scrape job categories and its subcategories from below link

https://www.upwork.com/i/freelancer-categories-all/

I tried to use following method for BeautifulSoup in Python

soup.find_all('h3',{'class':'m-t-40'}).text
soup.find_all('h3').text
soup.find_all(attrs = {'class':'m-t-40'}).text
soup.find_all(class_="m-t-40").text

But its not giving me categories text. Can anyone please tell me Where am I wrong?

Thank you in Advance