mitchelljy / Trending-YouTube-Scraper

Python script that scrapes the currently trending YouTube videos in a variety of countries
BSD 2-Clause "Simplified" License
311 stars 158 forks source link

"No filter selected" #7

Open ESoendergaard opened 4 years ago

ESoendergaard commented 4 years ago

Hi,

I get this when using print(request.json()):

{u'error': {u'code': 400, u'message': u'No filter selected. Expected one of: myRated, idParam, id, chart', u'errors': [{u'locationType': u'parameter', u'domain': u'youtube.parameter', u'message': u'No filter selected. Expected one of: myRated, idParam, id, chart', u'reason': u'missingRequiredParameter', u'location': u''}]}}

Any idea what to do?

mitchelljy commented 4 years ago

Have you modified the script at all? I think it's possible a request is being made without a specification of what data you want about a video. In particular, look at this line here and check it matches up.