Home > other >  Python crawl web images have two pictures don't know why I always fail?
Python crawl web images have two pictures don't know why I always fail?

Time:09-28

Crawl site image, is always the two problems, I looked at also do not have what distinction, is not, not tried many ways, don't know why, god see, little brother here? Thanks a lot!!!!!!
Web address: https://maoyan.com/films? ShowType=3 & amp; Offset=390
Web address: https://maoyan.com/films? ShowType=3 & amp; Offset=90

CodePudding user response:

Save the image file name do not appear Spaces and "/", filtering the line

CodePudding user response:

I climbed more than 800, and is not only the two, the other is "space" and with "/", can be successfully saved, I just don't know why these two no, how do I want to filter out "space" and "/"?

CodePudding user response:

For bosses to road

CodePudding user response:

No one ah??

CodePudding user response:

Filename. Replace ('/', '). The replace (', ')

CodePudding user response:

reference 5 floor dabingsou reply:
filename. Replace ('/', '). The replace (', ')

The filename is the file name, here does not include the path to the part of you,
To give you an example
  • Related