Hi, Hitesh: great video, except...it didn't work. The file folder is made, but nothing is inside. The problem seems to be in your line 10, or your lines 11 and 12. When I print, nothing happens. Here is the code, if anyone can help: from bs4 import * import requests as rq import os r2 = rq.get("www.pexels.com/@hiteshchoudhary") soup2 = BeautifulSoup(r2.text, "html.parser") links = [] x = soup2.select('img[src^="images.pexels.com/photos"]') for img in x: links.append(img['src']) for l in links: print(l)
This is a waste of time. This guy is just promoting his paid training videos. I am not going to waste my own time typing in his code. Where is the github link to the code file ??
imad kerzazi there is no way it won’t work if you do everything right, I have used beautiful soups for some of my tricky projects.. make sure the html tags are right.. soup can work only with the right src.. also the code loops through all the images and then writes 10 images so make sure your looping looks good.. if you still have issues link me to your code.. github or somewhere else..
Thanks a lot. I tried the code in the video but when trying to print the links I got empty list. Printed soup but it seems there are no links to the images.
@@vigneshrao5679 same here I've tried with the tutorial example link but it gives no output. I printed the html code that html.parser gives and i noticed it don't show tha images links.
Note that this type of parsing can only be used for websites that have their data publicly available. I'll be working on a project which can simply act as an image downloader plugin. That should be able to pick images from any website. Once done, I will post it on my github github.com/vignesh1793/
@Eriko. Oy You're right google blocks all urllib requests so the only way you can do with python is to use something like selenium, open an automated browser and make it download images..
*Sir, create video on google pay integration from responsive mob web site, mobile app to google pay redirect and pay money and redirect to website, mob app* *Its helpful college projects with out buying payment gateway. Pls sir, its really helpful for many peoples*
Hi Hitesh, Please make a video on web crawling using python and how to send data to webpage and further open another webpage based on that very data. For example if we want to search on a search engine and get the data on the search result webpage
Getting this error : Traceback (most recent call last): File "crawl.py", line 6, in soup2 = BeautifulSoup(r2.text, "html.parse") File "C:\Users\win10\PycharmProjects\crawl\crawlenv\lib\site-packages\bs4\__init__.py", line 225, in __init__ raise FeatureNotFound( bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: html.parse. Do you need to install a parser library?
Hello sir, Thanks for making so many videos. I am one of regular visitor of your youtube channel. If you have some time please make a series on python programing language. I am very thankful of you. Thanks in advance. love you sir
Sir I am currently learning about programming logics from a book by Joyce Farrel. Can I learn a programming language simultaneously or learn about logics first?
Sir, I am making a project on Vehicle detection & speed Tracking using videos. So can you please suggest some info. And what should I used and approach to make it...
BTW this video was very awesome and it gave me alot of things like 1. how interviewer thinks, 2. Many free hosting websites, 3. why I should follow full instructions. 4. There is huge difference btwn number of applicant and competitor. Not all applicant are competitor. Stuffs like these Was very interesting and helpful for me(a beginner coder)