-
vsraj80Good day to all
-
mohan43uvsraj80: good day to you too
-
GuruprasannaHi,sir This is guru prasanna from madurai.I am currently pursuing python full stack developer course in payilagam.As a fresher i need your support and guidance also ,i am willing to work with you and contribute towards open source projects on python.
-
vsraj80Hi. i have tried to webscrape the data. somewhere i did mistake. can anyone suggest on this.
-
vsraj80
-
vsraj80Mohan:Good day
-
mohan43uGuruprasanna: welcome
-
guruprasannamohan43u:Thanks for the warm welcome sir
-
shrini-weechathi vsraj80
-
shrini-weechatfor the above issue, try printing each output
-
shrini-weechatthe html element you are looking may not be there
-
shrini-weechator in some other part of the html structure
-
shrini-weechatuse INSPECT in browser and copy the xpath of the required element
-
shrini-weechatanother info, for the stock market details, try to use any API
-
shrini-weechatlike yahoo finance api
-
shrini-weechatinstead of scrapping
-
vsraj80Shrini: Okay, Thank you. i will try
-
shrini-weechat
-
vsraj80interview related there may be a requirement for scrapping. that's why trying
-
shrini-weechat
-
shrini-weechatok
-
shrini-weechatthen get the correct xpath
-
vsraj80okay
-
vsraj80<div title="Merck & Co., Inc." class="tw-text-left tw-max-w-32 yf-eg2gbv">Merck & Co., Inc.</div> this is the code finance.yahoo.com/research-hub/screener/recent_52_week_lows
-
vsraj80i tried to pick company = soup.find("div","title")
-
shrini-weechatget the xpath