Skip to content

Conversation

@half-duplex
Copy link
Member

@half-duplex half-duplex commented Oct 25, 2020

Description

Use the Wikipedia API to fetch only article content instead of scraping the entire page.
I'd like to use a better parser, but we probably don't want to add dependencies to the larger sopel repo just for this.
make qa currently fails in the same way it does on master.

Checklist

  • I have read CONTRIBUTING.md
  • I can and do license this contribution under the EFLv2
  • No issues are reported by make qa (runs make quality and make test)
  • I have tested the functionality of the things this change touches

@half-duplex
Copy link
Member Author

Ok, I dunno why qa fails on my box, but it passes in CI 🤷

@dgw
Copy link
Member

dgw commented Oct 25, 2020

make qa currently fails in the same way it does on master.

😕

Ok, I dunno why qa fails on my box, but it passes in CI 🤷

Good; I was about to say master doesn't fail anything so WTF 😅
Plus, tld doesn't have any tests (unit, example, or otherwise), so changes to it shouldn't affect the test suite passing anyway.

Copy link
Member

@dgw dgw left a comment

Choose a reason for hiding this comment

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

tl;dr: except Exception bad

Copy link
Member

@dgw dgw left a comment

Choose a reason for hiding this comment

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

Man, I got distracted by the whole Travis CI build queue thing… This is a meaningful reduction in the amount of HTML the bot needs to transfer and parse. Why not?

@dgw dgw merged commit 92185b6 into sopel-irc:master Dec 23, 2020
@half-duplex half-duplex deleted the tld-wiki-api branch January 17, 2021 22:35
@half-duplex half-duplex restored the tld-wiki-api branch May 14, 2023 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants