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

Adding a spider for AP Macapá #254

Merged
merged 2 commits into from
Oct 10, 2020
Merged

Conversation

phrfpeixoto
Copy link
Contributor

This is my proposed solution for #180.

I know @rennerocha commented on that issue, PR #217 is already under review for this spider, but by the time I saw that comment, the code was already written, so I figured I should submit it anyway. At least I can get some comments and learn something.

@phrfpeixoto phrfpeixoto mentioned this pull request Oct 2, 2020
@phrfpeixoto
Copy link
Contributor Author

phrfpeixoto commented Oct 2, 2020

I opted to perform one request per day, since lots of the entries on the website do not carry a date specification anywhere on the HTML body.

I also noticed that the URL path (which includes a date) is not always a good representation for the actual date for that gazette.

This will result in much more requests, but it's the way I found to assure that dates will be consistent, and no results will be skipped due to the lack of a date. See my comment on #217

@phrfpeixoto phrfpeixoto force-pushed the ap-macapa branch 2 times, most recently from 320eec0 to 7c9e1bf Compare October 2, 2020 03:16
@phrfpeixoto phrfpeixoto closed this Oct 2, 2020
@phrfpeixoto phrfpeixoto reopened this Oct 2, 2020
@phrfpeixoto
Copy link
Contributor Author

Sorry! I unwillingly closed this trying to rebase my branch. Reopened.

@phrfpeixoto phrfpeixoto requested a review from jvanz October 6, 2020 14:57
@phrfpeixoto phrfpeixoto requested a review from jvanz October 7, 2020 15:03
@jvanz jvanz merged commit 8fccc19 into okfn-brasil:main Oct 10, 2020
@jvanz jvanz linked an issue Oct 19, 2020 that may be closed by this pull request
@sergiomario sergiomario added the hacktoberfest-accepted Pull Requests aprovados na Hacktoberfest label Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Pull Requests aprovados na Hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Macapá spider
4 participants