You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Accessing the above URL, opens a Google Consent form to accept or reject cookies. The get_news() function should return a URL that allows to access the news article directly without Google Consent.
The text was updated successfully, but these errors were encountered:
I'm also having this issue! I think it may have to do with EU GDPR stuff. Tried getting rid of the consent substring and it didn't work. Any help appreciated!
Hello all! For me, your solution didn't work. So, I ended up implementing this one: orig_url = requests.get(get_news()['url']).url
This solution works, but is much slower than than getting just the head. Unfortunately getting just the headers doesn't work, as it returns the Google RSS feed URL.
Is there any way to bypass Google Consent Mode in GNews
get_news()
function? Callingget_news()['url']
function returns a URL as follows:https://consent.google.com/m?continue=https://news.google.com/rss/articles/CBMijQFodHRwczovL3d3dy5idXNpbmVzc3RvZGF5LmluL21hZ2F6aW5lL2NvcnBvcmF0ZS9zdG9yeS9ib2xseXdvb2RzLXNtYWxsLWJ1ZGdldC1maWxtcy1hcmUtaW4tY3Jpc2lzLW1vZGUtaGVyZXMtd2hhdHMtZ29pbmctb24tMzYxMTE4LTIwMjMtMDEtMTnSAZEBaHR0cHM6Ly93d3cuYnVzaW5lc3N0b2RheS5pbi9hbXAvbWFnYXppbmUvY29ycG9yYXRlL3N0b3J5L2JvbGx5d29vZHMtc21hbGwtYnVkZ2V0LWZpbG1zLWFyZS1pbi1jcmlzaXMtbW9kZS1oZXJlcy13aGF0cy1nb2luZy1vbi0zNjExMTgtMjAyMy0wMS0xOQ?oc%3D5&gl=DE&m=0&pc=n&hl=en-US&src=1
Accessing the above URL, opens a Google Consent form to accept or reject cookies. The
get_news()
function should return a URL that allows to access the news article directly without Google Consent.The text was updated successfully, but these errors were encountered: