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

fix: update csv dataset with script rerun #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wayne-shih
Copy link

@wayne-shih wayne-shih commented Feb 16, 2020

πŸƒβ€β™‚οΈπŸ

Re-ran python script on 2020, Feb 16 to generate csv dataset. This PR is to update the static dataset.

New rows added:

+      Chatham Island crested penguin,Sphenisciformes,Spheniscidae,Eudyptes warhami,Extinct,Endemic,http://nzbirdsonline.org.nz/species/chatham-island-crested-penguin
+      Collared petrel,Procellariiformes,Procellariidae,Pterodroma brevipes,Vagrant,Native,http://nzbirdsonline.org.nz/species/collared-petrel
+      Bice's penguin,Sphenisciformes,Spheniscidae,Kuminanu biceae,Extinct,Endemic,http://nzbirdsonline.org.nz/species/bices-penguin
+      Alastair's albatross,Procellariiformes,Diomedeidae,Aldiomedes angustirostris,Extinct,Endemic,http://nzbirdsonline.org.nz/species/alastairs-albatross

No error occurred when generating the file.

reran `nzbirdsonline_index.py`; file generated on 2020, Feb 16
@@ -90,7 +90,6 @@ def parse_result_page(self, page, soup):
# extract data from the results page
name = HTMLParser().unescape(result.find('h3', 'search-result-title').find('a')\
.contents[0]).encode('ascii', 'replace')
name = name.replace("Stirton?s", "Stirton's") # TODO - make more robust
Copy link
Author

Choose a reason for hiding this comment

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

this line doesn't seem necessary now...

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.

1 participant