Web Scraping Using Python | Create your own JOB ASSISTANT | Beautifulsoup

Поделиться
HTML-код
  • Опубликовано: 26 окт 2024

Комментарии • 15

  • @PWSkillsTech
    @PWSkillsTech  6 месяцев назад +3

    Upskill NOW with PW Skills
    Decode Decode Course in Java, Python and C++- bit.ly/3VMzyNM
    Explore Job Assistance Batches
    Data Analytics Course - bit.ly/3Jae5ai
    Full Stack Development Course - bit.ly/3VNdyST
    Data Science with Generative AI Course - bit.ly/3J5yXiK
    DevOps and Cloud Computing Course - bit.ly/3VNMR0x
    UI/UX Design Course - bit.ly/3vGAton
    Mastering the Power of Artificial Intelligence Course - bit.ly/3VLPGiA
    Still confused to choose the right CAREER path? Fill the form, you will get the call from our Senior Academic Counsellor: bit.ly/495UNgC

    • @rahul00195
      @rahul00195 6 месяцев назад +1

      PWSKILLS COURSES (MAXIMUM DISCOUNT)
      ---------------------------------------
      Decode Python with DSA Course ---> CPCA0734 (1000 Rs Less)
      Decode Java with DSA Course ---> CPCA0734 (1000 Rs Less)
      Decode C++ with DSA Course ---> CPCA0734 (1000 Rs Less)

  • @divyanshuyadav3400
    @divyanshuyadav3400 6 месяцев назад +2

    Done ,Thank You, HARE KRISHNA

  • @MohMaya13
    @MohMaya13 6 месяцев назад +2

    Quality Project, thank you sir. It was worth coding side by side with you!🙏✨

  • @aarish22
    @aarish22 6 месяцев назад +1

    Completed
    Need more videos like this
    Sir make on end to end ml project

  • @rajeshwaryadav4084
    @rajeshwaryadav4084 6 месяцев назад

    Please make a dedicated video on web scraping from scratch please sir

  • @nileshdiwakar3528
    @nileshdiwakar3528 6 месяцев назад +1

    Bhai kisike pass pw ka paid web development course h kisike pass?
    I want to know that how is it? How's the teaching style and content of course?

  • @jerrybritto1813
    @jerrybritto1813 5 месяцев назад

    Thank you sir

  • @ShubhamSharma-01-India
    @ShubhamSharma-01-India 6 месяцев назад +1

    please bring something including mchine learning and mlops also in end to end form sir completed this but having confusion why cant we parse it in html format insted of lxml

  • @hariskhanhk5970
    @hariskhanhk5970 6 месяцев назад

    sir bulk me kese fetch kre ge data

  • @Akhoon_faheem
    @Akhoon_faheem 3 месяца назад

    # importing necessary modules
    import urllib.request
    import urllib.error
    import ssl
    import time
    from bs4 import BeautifulSoup
    # setting url and ssl
    print('WELCOME TO JOB HUNT PROGRAM FOR IT PROFFESIONALS')
    print('---------------------------------------------------------------------------------------------')
    print()
    print(' WE RECCOMEND YOU TO USE DEFAULT URL BY PRESSING Y IF U DO NOT HAVE PRIOR KNOWLEDGE:')
    print()
    INP = input('press y to use default url and n to use your own url: ')
    inp =INP.strip().lower()
    if inp == 'y':
    url ='www.timesjobs.com/candidate/job-search.html?searchType=Home_Search&from=submit&asKey=OFF&txtKeywords=&cboPresFuncArea=35'
    if inp == 'n':
    url = input("Enter the url and press enter: ")
    ctx = ssl.create_default_context()
    ctx.check_hostname =False
    ctx.verify_mode = ssl.CERT_NONE
    req = urllib.request.Request(url, headers={'User-Agent' : 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:90.0) Gecko/20100101 Firefox/90.0'})
    #your skils
    your_skill = input('enter your skill with comma separated and at the end press enter: ')
    your_skill = your_skill.lower()
    your_skill= your_skill.replace(" ","")
    your_skill = your_skill.split(',')
    print(f'Your skills are : {your_skill}')
    print( 'wait for few secs...')
    time.sleep(5)
    print()
    #opening page
    try:
    fhand = urllib.request.urlopen(req, context=ctx)
    page_data = fhand.read()
    #using soup for better
    soup = BeautifulSoup(page_data,'lxml')
    #itterater
    list_tag = soup.find_all('li',class_="clearfix job-bx wht-shd-bx")
    for tags in list_tag:
    Role = tags.find('header').find('h2').find('a').text.strip()
    lnk = tags.find('h3',class_="joblist-comp-name").text.strip()
    skills = tags.find('span',class_="srp-skills").text.replace(" ","").strip().split(",")
    date = tags.find("span",class_="sim-posted").text.strip()
    print()
    # matching of skills
    for elem in your_skill:
    if elem in skills:
    print(f''' ROLE IS : {Role.lower()}
    COMPANY NAME: {lnk.lower()}
    SKILLS REQUIRED: {skills}
    DATE : {date.lower()}
    -------------------------------------------------
    ''')
    except urllib.error.URLError as e:
    print(f'failed to connect {e.reason}')
    except urllib.error.HTTPError as e:
    print(f"failed to process: {e.code} {e.reason}")
    finally:
    print()
    print('-------------------------------------')
    print('script completed')
    print('#############BY FAHEEM#################')

  • @AadityaRajMehra
    @AadityaRajMehra 6 месяцев назад

    Windows laptop m bhi bana sakte hai ye sir

    • @Akhoon_faheem
      @Akhoon_faheem 3 месяца назад

      it needs highest version of apple LINUX

  • @krishmistry1422
    @krishmistry1422 6 месяцев назад +1

    Cybersecurity course needed