elliotgao2 / gain

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

Regex selector support. #2

Closed elliotgao2 closed 7 years ago

elliotgao2 commented 7 years ago

There are Css() and Xpath() already. I think the Regex() is useful too.

class Post(Item):
    id = Regex('\d{32}')