-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: extend twitter api - initial commit #17
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some thoughts on the design of the API, and why include count
when we don't have a chance to paginate. Also some additional points.
Regarding the tests, I've added some suggestions. In short:
-
Always check the error after unmarshalling. This will catch some breaking changes in the Twitter schema (not all, but something is better than nothing).
-
Use
Expect(x).ToNot(BeEmpty())
instead ofExpect(len(x)).ToNot(BeZero())
. This should result in slightly better error messages if the test fails.
There are one or two additional suggestions in the tests. I would also recommend, if you can, changing the other tests in thtwitter_test.go
accordingly.
resolved the review pointed on the latest commit.
Description
This PR extends the twitter api based on the requirements here https://github.com/masa-finance/issues/issues/217.
This also bumps the tee-worker to use masa's own fork of twitter-scraper.