Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate dynamic spiders from *.yml file #3

Open
gustavorps opened this issue May 2, 2017 · 0 comments
Open

Generate dynamic spiders from *.yml file #3

gustavorps opened this issue May 2, 2017 · 0 comments
Assignees

Comments

@gustavorps
Copy link
Contributor

Proposed structure:

name: g1
allowed_domains:
  - g1.globo.com
items:
  ze.items.creativework.ArticleItem: 
    rules: []
    fields: 
      name:
        - [itemprop=name]::text 
        - .content-head__title::text 
      image: 
        - [itemprop=image]::attr(content) 
        - [property='og:image']::attr(content) 
      description:: 
          - [itemprop=description]::text
          - [itemprop=alternativeHeadline]::text
          - .content-head__subtitle::text 
      author: 
          - [itemprop=author]::text
          - [itemprop=creator]::text
      datePublished: 
          - [itemprop=datePublished]::text
          - [itemprop=datePublished]::attr(datetime)
      dateModified: 
          - [itemprop=dateModified]::text
          - [itemprop=dateModified]::attr(datetime)
      articleBody: 
          - [itemprop=articleBody]
          - .mc-body 
      keywords: 
          - [itemprop=keywords]::text
          - .entities__list-itemLink::text
@gustavorps gustavorps self-assigned this May 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant