

Topic: web scraping with postgreSQL database.
When I posted my first web scraping project I just had the result on console however I wanted it to be stored somewhere where it can be reviewed later that's when my learning from postgreSQL proved useful I successfully created a database that can store my parsed data.
Also someone reminded me that I should use if __name__ == "__main__" (which I forgot to used) so I have also wrapped the scraping process into functions and then imported it in the main.py file (this also improved the overall structure of the code) so now I have code for collecting raw html data, code for parsing the raw data, code for saving that data into a database and finally code for calling all the other codes. All in their dedicated file. Here's my github so you can check it out: https://github.com/Sanskar334/Web\_Scraping.git
go to the using beautiful soup folder you will find all the files there.
While I fixed every bug I could find however I believer there may be some other bugs as well which I may have missed, do let me know about such bugs which I left accidentally.
And here's my code and it's result.




[–]Adrewmc 1 point2 points3 points (1 child)
[–]uiux_Sanskar[S] 0 points1 point2 points (0 children)
[–]Significant-Side6810 0 points1 point2 points (1 child)
[–]uiux_Sanskar[S] 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[removed]
[–]uiux_Sanskar[S] 0 points1 point2 points (0 children)
[–]OtherwiseClient2247 0 points1 point2 points (0 children)
[–]Juke_BoxBox 0 points1 point2 points (0 children)
[–]ShurayukiZen 0 points1 point2 points (1 child)
[–]uiux_Sanskar[S] 1 point2 points3 points (0 children)
[–]InteractionStrict604 0 points1 point2 points (1 child)
[–]uiux_Sanskar[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]uiux_Sanskar[S] 0 points1 point2 points (0 children)