If you're on Windows, watch out for illegal filename chars when saving images.
I use this to clean filenames:
```python
import re
def clean_filename(filename):
return re.sub(r'[\\/*?:"<>|]', '', filename)
```
And +1 for `urljoin`βitβs a lifesaver for how to web scrape images from html bs4.
I use this to clean filenames:
```python
import re
def clean_filename(filename):
return re.sub(r'[\\/*?:"<>|]', '', filename)
```
And +1 for `urljoin`βitβs a lifesaver for how to web scrape images from html bs4.
