Plz provide me with the code of image scraping or help me with my code.
PLZ PLZ
Video code not working
hey @vidit123 ,
img_url="https:/"
## just remove this code line , the url already contains https://
img_url+=article.attrs['src']
I hope this will help you.
Thank You .
No , it does not contain, PLZ run this code(edited as you said) , but it is still giving the error as before - https://ide.codingblocks.com/s/289253
okay let me check it .
hey @vidit123 ,
while directly accesing all images on the page , you are also including the logo image of that page . That’s the reason you are getting that error.
As you need only the quotes images ,you just need to find all images inside the div element that contains those images.
so just add a line
container = soup.find("div",{"id":"all_quotes"})
before finding all img tags.
Your code will work fine.