Comments (3)
Hmmmm difficult. I think this is a problem with playwright. Could you try with chromium, i.e. comment out this line:
https://github.com/jlplenio/crude-twitch-viewer-bot/blob/8380c49fdeba680c202b124c789c72c7d0abaa03/ctvbot/instance.py#L135C1-L135C30
And try a different browser by changing https://github.com/jlplenio/crude-twitch-viewer-bot/blob/8380c49fdeba680c202b124c789c72c7d0abaa03/ctvbot/instance.py#L132 with e.g. playwright.firefox.launch()
In general, I would recommend you try playwright isolated in a small custom python script. And return to the bot once it works.
And does the executable work from https://github.com/jlplenio/crude-twitch-viewer-bot/releases/latest?
from crude-twitch-viewer-bot.
Hi @jlplenio ,
I wanted to provide an update on this issue. I've managed to resolve it by switching from using Google Chrome to Mozilla Firefox in the Playwright configuration. Here's how I modified the relevant part of the script:
self.playwright = sync_playwright().start()
self.browser = self.playwright.firefox.launch(
proxy=proxy_dict,
headless=self.headless,
channel="firefox",
args=[
"--window-position={},{}".format(self.location_info["x"], self.location_info["y"]),
"--mute-audio",
],
)
This change seems to have resolved the spawn UNKNOWN
error I was facing with Chrome. The script now successfully launches a Firefox instance via Playwright.
I'd like to thank the developers for creating and maintaining this project. Your work is greatly appreciated.
I'm now closing this issue as it has been resolved.
Best Regards,
Nes
from crude-twitch-viewer-bot.
Interesting. Can you confirm that everything is works as expected. Restarts, fresh, kill, screenshot, green status boxes etc.
I was afraid to switch to another browser because I kept seeing in my tests that Twitch behaves differently depending on the browser (layout, cookies, local storage).
And thank you for coming back and presenting your solution. Kudos @Nesonica
from crude-twitch-viewer-bot.
Related Issues (20)
- Login error HOT 1
- ModuleNotFoundError: No module named 'tkinter' on Ubuntu 23 HOT 3
- Events in chat and peak CPU usage, crashing instances HOT 15
- macOS startup fails HOT 1
- Viewer count no longer increasing HOT 1
- Error:net::ERR_TUNNEL_CONNECTION HOT 1
- How do I fix this? HOT 1
- URGENT - Webshare blocks proxies HOT 10
- ERR_TUNNEL_CONNECTION_FAILED at https://www.twitch.tv/p/en/legal/giftcard/ HOT 1
- Instant bot detection HOT 2
- Webshare paused my proxies despite already using v9a - Webshare fix version. HOT 9
- Linux's Version Keeps Giving Me An Error Message HOT 11
- Only fraction of youtube CCV being counted in headless HOT 2
- Useragents Outdated HOT 1
- Doesn't go past the "content is intended for certain audiences" HOT 7
- free proxies dont work anymore HOT 1
- Err tunnel connection fails HOT 3
- Linux Version Doesn't Connect HOT 2
- Flag Detection Glitch HOT 1
- Error on Youtube Lives HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crude-twitch-viewer-bot.