-
Notifications
You must be signed in to change notification settings - Fork 264
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
Fixes #462 Add Video search support for Ask #463
Conversation
Codecov Report
@@ Coverage Diff @@
## master #463 +/- ##
==========================================
- Coverage 87.5% 85.39% -2.11%
==========================================
Files 28 28
Lines 720 760 +40
==========================================
+ Hits 630 649 +19
- Misses 90 111 +21
Continue to review full report at Codecov.
|
Added tests at |
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.
LGTM ! Please wait for @vaibhavsingh97 review 👍
@vaibhavsingh97 Please review asap... |
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.
Great the link working properly 💯
Please resolve conflicts |
app/scrapers/__init__.py
Outdated
@@ -42,6 +42,8 @@ def feed_gen(query, engine, count=10, qtype=''): | |||
engine = old_names.get(engine, engine) | |||
if engine in ('quora', 'youtube'): | |||
urls = scrapers[engine].search_without_count(query) | |||
elif engine in ('ask',) and qtype == 'vid': |
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.
Why use in ('ask',)
You can go with if engine == 'ask'
since there is only one option to choose from?
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.
So that other engines can also be added in this tuple, if there implementation is same.
Fixes #462
Addresses #320
Checklist
master
branch.Changes proposed in this pull request:
Providing the heroku deployment at https://salty-spire-70237.herokuapp.com/
@mariobehling @ParthS007 @vaibhavsingh97 Please review. Thanks !!