René's URL Explorer Experiment


Title: How to set proxies? · Issue #61 · copitux/python-github3 · GitHub

Open Graph Title: How to set proxies? · Issue #61 · copitux/python-github3

X Title: How to set proxies? · Issue #61 · copitux/python-github3

Description: I wrote my test code as follows: from pygithub3 import Github proxies = {"http": "http://:", "https": "http://:", } gh = Github(login=, password=, token=, proxies = proxies) use = gh.user...

Open Graph Description: I wrote my test code as follows: from pygithub3 import Github proxies = {"http": "http://:", "https": "http://:", } gh = Github(login=, password=, token=

X Description: I wrote my test code as follows: from pygithub3 import Github proxies = {"http": "http://<ip>:<port>", "https": "http://<ip>:<port>",...

Opengraph URL: https://github.com/copitux/python-github3/issues/61

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to set proxies?","articleBody":"I wrote my test code as follows:\r\n\r\n```\r\nfrom pygithub3 import Github\r\nproxies = {\"http\": \"http://\u003cip\u003e:\u003cport\u003e\", \"https\": \"http://\u003cip\u003e:\u003cport\u003e\", }\r\ngh = Github(login=\u003cuserID\u003e, password=\u003cuserPWD\u003e, token=\u003cOAUTH-TOKEN\u003e, proxies = proxies)\r\nuse = gh.users.get(\u003cuserID\u003e)\r\n```\r\n\r\nWhich raise:\r\n\r\n```\r\n  File \"/my/path/to/test/code/v1.py\", line 10, in \u003cmodule\u003e\r\n    octocat = gh.users.get()\r\n  File \"/usr/local/lib/python2.7/dist-packages/pygithub3/services/users/__init__.py\", line 36, in get\r\n    return self._get(request)\r\n  File \"/usr/local/lib/python2.7/dist-packages/pygithub3/services/base.py\", line 143, in _get\r\n    response = self._client.get(request, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/pygithub3/core/client.py\", line 84, in get\r\n    response = self.request('get', request, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/pygithub3/core/client.py\", line 71, in wrapper\r\n    return func(self, verb, request, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/pygithub3/core/client.py\", line 77, in request\r\n    response = self.requester.request(verb, request, **kwargs)\r\n  File \"/my/path/anaconda2/lib/python2.7/site-packages/requests/sessions.py\", line 475, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/my/path/anaconda2/lib/python2.7/site-packages/requests/sessions.py\", line 585, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/my/path/anaconda2/lib/python2.7/site-packages/requests/adapters.py\", line 467, in send\r\n    raise ConnectionError(e, request=request)\r\nrequests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /user?access_token=\u003cOAUTH-TOKEN\u003e\u0026per_page=100 (Caused by NewConnectionError('\u003crequests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f4cbf2fb890\u003e: Failed to establish a new connection: [Errno -5] No address associated with hostname',))\r\n```\r\n\r\nI tried link [https//api.github.com/user?access_token=\\\u003cOAUTH-TOKEN\u003e\u0026per_page=100](https//api.github.com/user?access_token=\\\u003cOAUTH-TOKEN\u003e\u0026per_page=100) with `requests` like:\r\n\r\n```\r\nimport requests   \r\nproxies = { \"http\": \"http://\u003cIP\u003e:\u003cPORT\u003e\", \"https\": \"http:\u003cIP\u003e:\u003cPORT\u003e\", }   \r\na = requests.get(\"https://api.github.com/user?access_token=\u003cAOTH-TOKEN\u003e\u0026per_page=100\", proxies=proxies)  \r\nfor key, value in a.__dict__.items():\r\n    print key, \":\", value\r\n```\r\n\r\nIt works.\r\n\r\nWhen I debug the first section of code described as above, I found an problem:\r\n\r\nWhen run the `gh = Github(login=\u003cuserID\u003e, password=\u003cuserPWD\u003e, token=\u003cOAUTH-TOKEN\u003e, proxies = proxies)`, `gh._users._client.config` contains the params what I assigned. But when run the `gh.users.get()` the `gh.users._client.config={}`.\r\n\r\nCould anyone tell me how to set proxies?","author":{"url":"https://github.com/YMMS","@type":"Person","name":"YMMS"},"datePublished":"2017-02-13T12:52:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/61/python-github3/issues/61"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:674a50dd-520c-0e6d-caab-745abc2ff3f1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8BE6:10DEB3:1042360:16B0D7C:6970C779
html-safe-nonce962d0638defa23e23a382abed798bd28218957b2d499d7bd1b36f6e5b5fd87b8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkU2OjEwREVCMzoxMDQyMzYwOjE2QjBEN0M6Njk3MEM3NzkiLCJ2aXNpdG9yX2lkIjoiMzY0ODU0MjY1MjIzNjI4NjY1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac04e96d0884084a5f4d8ea49b54b28fe947117a156810ae46848042d55e08a81d
hovercard-subject-tagissue:207210381
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/copitux/python-github3/61/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5802e87ddfc18d00c5dac1273df332b485e05573663c1c97ffe66dde7f591ad9/copitux/python-github3/issues/61
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5802e87ddfc18d00c5dac1273df332b485e05573663c1c97ffe66dde7f591ad9/copitux/python-github3/issues/61
og:image:altI wrote my test code as follows: from pygithub3 import Github proxies = {"http": "http://:", "https": "http://:", } gh = Github(login=, password=, token=
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameYMMS
hostnamegithub.com
expected-hostnamegithub.com
None721764876e433c894814212f8100f6610f1dde78a987acc2e385d8be8e170e9c
turbo-cache-controlno-preview
go-importgithub.com/copitux/python-github3 git https://github.com/copitux/python-github3.git
octolytics-dimension-user_id508027
octolytics-dimension-user_logincopitux
octolytics-dimension-repository_id2667011
octolytics-dimension-repository_nwocopitux/python-github3
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id1573719
octolytics-dimension-repository_parent_nwokennethreitz/python-github3
octolytics-dimension-repository_network_root_id1573719
octolytics-dimension-repository_network_root_nwokennethreitz/python-github3
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6ff3d08f4ee1c3f89ebedf4df8fc8fe851190294
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/copitux/python-github3/issues/61#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcopitux%2Fpython-github3%2Fissues%2F61
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcopitux%2Fpython-github3%2Fissues%2F61
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=copitux%2Fpython-github3
Reloadhttps://patch-diff.githubusercontent.com/copitux/python-github3/issues/61
Reloadhttps://patch-diff.githubusercontent.com/copitux/python-github3/issues/61
Reloadhttps://patch-diff.githubusercontent.com/copitux/python-github3/issues/61
copitux https://patch-diff.githubusercontent.com/copitux
python-github3https://patch-diff.githubusercontent.com/copitux/python-github3
kennethreitz/python-github3https://patch-diff.githubusercontent.com/kennethreitz/python-github3
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fcopitux%2Fpython-github3
Fork 72 https://patch-diff.githubusercontent.com/login?return_to=%2Fcopitux%2Fpython-github3
Star 205 https://patch-diff.githubusercontent.com/login?return_to=%2Fcopitux%2Fpython-github3
Code https://patch-diff.githubusercontent.com/copitux/python-github3
Issues 15 https://patch-diff.githubusercontent.com/copitux/python-github3/issues
Pull requests 8 https://patch-diff.githubusercontent.com/copitux/python-github3/pulls
Actions https://patch-diff.githubusercontent.com/copitux/python-github3/actions
Projects 0 https://patch-diff.githubusercontent.com/copitux/python-github3/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/copitux/python-github3/security
Please reload this pagehttps://patch-diff.githubusercontent.com/copitux/python-github3/issues/61
Insights https://patch-diff.githubusercontent.com/copitux/python-github3/pulse
Code https://patch-diff.githubusercontent.com/copitux/python-github3
Issues https://patch-diff.githubusercontent.com/copitux/python-github3/issues
Pull requests https://patch-diff.githubusercontent.com/copitux/python-github3/pulls
Actions https://patch-diff.githubusercontent.com/copitux/python-github3/actions
Projects https://patch-diff.githubusercontent.com/copitux/python-github3/projects
Security https://patch-diff.githubusercontent.com/copitux/python-github3/security
Insights https://patch-diff.githubusercontent.com/copitux/python-github3/pulse
How to set proxies?https://patch-diff.githubusercontent.com/copitux/python-github3/issues/61#top
https://github.com/YMMS
https://github.com/YMMS
YMMShttps://github.com/YMMS
on Feb 13, 2017https://github.com/copitux/python-github3/issues/61#issue-207210381
https//api.github.com/user?access_token=&per_page=100https://patch-diff.githubusercontent.com/copitux/python-github3/issues/https/api.github.com/user?access_token=%3COAUTH-TOKEN%3E&per_page=100
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.