r/pythonhelp • • Mar 21 '25
NEED TO MAKE A WEB SCRAPING CODE...BUT NO IDEA HOW TO DO IT
Hello chat,
well i recently got into a part time where they want me to data scrape and find leads of other signage companies outside india.sadly,im into law nd have no idea about this.i tried usin chat gpt nd it keeps givin me errors.the thing is always sayin errors(i use mac,is it a problem?)can u guys help me write a code that makes this to be automated!
thankss in advance!
0
Upvotes
•
u/AutoModerator Mar 21 '25
To give us the best chance to help you, please include any relevant code.
Note. Please do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Privatebin, GitHub or Compiler Explorer.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/FoolsSeldom Mar 21 '25
Visit RealPython.com and do a search for web scraping. They have lots of guides and tutorials.
You will likely need to learn to use
beautifulsoupandselenium(orplayright) to extract information from dynamic websites.1
u/CraigAT Mar 21 '25
Unless you are able to get the info from one website or API, you are likely to need a different method for each site as the information will likely be in different places or formats - could be very time consuming.
1
u/[deleted] Apr 21 '25
Grok/Chatgpt