OlafJanssen added a comment.
@Chicocvenancio Thanks for elegant your solution. I looked at https://stackoverflow.com/questions/10606133/sending-user-agent-using-requests-library-in-python I added this the notebook, is that a valid approach as well? (I'm not experienced with this sort of stuff yet) -------------------------------------------- import requests url = 'http://www.kb.nl' headers = { 'User-Agent': 'My User Agent 1.0', 'From': 'olaf.jans...@kb.nl' # This is another valid field } response = requests.get(url, headers=headers) TASK DETAIL https://phabricator.wikimedia.org/T230135 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: OlafJanssen Cc: Lucas_Werkmeister_WMDE, Chicocvenancio, OlafJanssen, darthmon_wmde, 94rain, DannyS712, Nandana, Lahi, Gq86, R96340, GoranSMilovanovic, Allthingsgo, QZanden, EBjune, merbst, LawExplorer, Framawiki, _jensen, rosalieper, Jonas, Xmlizer, Jane023, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, Xqt, aude, Tobias1984, yuvipanda, Capt_Swing, Manybubbles, zhuyifei1999, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs