Skip to content

Conversation

danilolic
Copy link
Owner

Pode receber dois parâmetros: campus ou id e um hash de options.
Se os campos ficarem em branco por default o crawler buscará todas as matérias do Campus Darcy Ribeiro

Caso o scrap seja por id, deverá também ser passado um flag dentro do hash de options { by_id: true }

Mwcrawler::Crawler.subjects(campus_or_id = :darcy_ribeiro, options = { log: false, by_id: false })
#5

Copy link
Collaborator

@vitorp vitorp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fiz algumas observações no código.

@danilolic danilolic closed this Nov 5, 2018
@danilolic danilolic reopened this Nov 5, 2018
@danilolic danilolic changed the title Implementa crawler de subjects Feature/Feature/crawl subjects Mar 4, 2019
@danilolic danilolic changed the title Feature/Feature/crawl subjects Feature/crawl subjects Mar 4, 2019
@danilolic danilolic requested a review from vitorp September 17, 2019 14:18
@wladimirgramacho wladimirgramacho merged commit f0de6e4 into master Sep 17, 2019
@wladimirgramacho wladimirgramacho deleted the crawler-subjects branch September 17, 2019 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants