elliotgao2 / gain

Web crawling framework based on asyncio.
GNU General Public License v3.0
2.04k stars 207 forks source link

File downloader. #18

Closed elliotgao2 closed 7 years ago

elliotgao2 commented 7 years ago
class Post(Item):
    title = Css('.entry-title')
    pic =  Css('.pic', 'src')

If a field of an item is a file, then auto download it.

Any suggestions?

elliotgao2 commented 7 years ago

Download file in the save() method.