[Question] Proxy documentation
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1k
- Forks
- 85
- PR merge metrics
- No merged PRs in 30d
Description
Describe your question
I've tried getting my proxy service to work with Botright. I have it working with a urllib example and with normal playwright. When I try to convert it to a string and use it in Botright, it does not connect. Can you please add a working example to the Botright documentation?
`botright.modules.proxy_manager.ProxyCheckError: Could not get IP-Address of Proxy (Proxy is Invalid/Timed Out)
import asyncio
import botright
async def main():
botright_client = await botright.Botright()
# Proxy configuration
proxy = "[username]:[password]@[address]:[port]"
# Launch the browser with proxy settings
browser = await botright_client.new_browser(
proxy=proxy,
args=[
"--ignore-certificate-errors",
],
)
# Create a new page and navigate to the desired URL
page = await browser.new_page()
await page.goto("https://www.google.com")
print(await page.title())
await botright_client.close()
if __name__ == "__main__":
asyncio.run(main())
Expected behavior
Connects to proxy successfully.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Windows
- Version 11
Additional context
Adding http:// from the start does not change anything.
Removing args does not change anything
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing Botright documentation and the proxy handling around botright.modules.proxy_manager.ProxyCheckError, then compare it with the supplied Python and Playwright example. Done means the documentation contains a working authenticated proxy example and explains the expected proxy format and successful connection behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- playwright, python
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100