Twitch-Channel-Points-Miner-v2
Twitch-Channel-Points-Miner-v2 copied to clipboard
Add integrity request
Description
To fix issues #592 caused by Twitch API needs Client-Integrity
header which can be retrieved by post request to https://gql.twitch.tv/integrity
with required headers.
Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
I have tried to claim channel points from various streams with success response.
Checklist:
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand areas
- [x] My changes generate no new warnings
Awesome! 🤩 The community it's really happy for this
I got a new job and move to another city, so I don't have too much time, I'm also without internet at home 🥺
I hope to review this PR asap!
Actually digging a bit into it, Client-Version can be found on twitch page with this regex: https://github.com/RakSrinaNa/ChannelPointsMiner/pull/292/commits/5777cfa4a7a92be7144a00480845dedcfb3ebfce#diff-bffe02af4af21c99c40d08a1e3c0dfc2b55068ceb14046b7922adeb1ec6be940R66
I can confirm this works and fixed the issue for me. Great job!
Replaced the 2 files in the directories mentioned but starts to give error?
It started to work as intended. Good job!
Can anyone help in telling how to apply the fix?
Fix another bug :)
Twitch update Client-Version
more frequent than I thought, so I change update_client_version
function to be called on every post_gql_request
.
Hope this help :)
Fix another bug :) Twitch update
Client-Version
more frequent than I thought, so I changeupdate_client_version
function to be called on everypost_gql_request
. Hope this help :)
Can someone mention how to implement the fix? [is it just replacing the 2 mentioned files or is there more to it?]
Fix another bug :) Twitch update
Client-Version
more frequent than I thought, so I changeupdate_client_version
function to be called on everypost_gql_request
. Hope this help :)Can someone mention how to implement the fix? [is it just replacing the 2 mentioned files or is there more to it?]
Yes. You need to replace constants.py and Twitch.py.
@bossoq , thank you very much for the fixes and support! ❤️
Fix another bug :) Twitch update
Client-Version
more frequent than I thought, so I changeupdate_client_version
function to be called on everypost_gql_request
. Hope this help :)Can someone mention how to implement the fix? [is it just replacing the 2 mentioned files or is there more to it?]
Yes. You need to replace constants.py and Twitch.py.
Definitely sounds stupid but how do I copy the new code? If I plain copy it, it copies with alot of extra stuff and if i remove it gives error (probably i didnt remove properly), any way to just copy the new code ? and simple replace? (if i download the whole thing again, it still gives me the old files)
Fix another bug :) Twitch update
Client-Version
more frequent than I thought, so I changeupdate_client_version
function to be called on everypost_gql_request
. Hope this help :)Can someone mention how to implement the fix? [is it just replacing the 2 mentioned files or is there more to it?]
Yes. You need to replace constants.py and Twitch.py.
Definitely sounds stupid but how do I copy the new code? If I plain copy it, it copies with alot of extra stuff and if i remove it gives error (probably i didnt remove properly), any way to just copy the new code ? and simple replace? (if i download the whole thing again, it still gives me the old files)
Here Release
Fix another bug :) Twitch update
Client-Version
more frequent than I thought, so I changeupdate_client_version
function to be called on everypost_gql_request
. Hope this help :)Can someone mention how to implement the fix? [is it just replacing the 2 mentioned files or is there more to it?]
Yes. You need to replace constants.py and Twitch.py.
Definitely sounds stupid but how do I copy the new code? If I plain copy it, it copies with alot of extra stuff and if i remove it gives error (probably i didnt remove properly), any way to just copy the new code ? and simple replace? (if i download the whole thing again, it still gives me the old files)
Here Release
Thank you for taking the time for this dumb ass
Leaving an update here, I replaced constants.py and Twitch.py a while back and it was initially successful in being able to auto-claim drops.
I just noticed today that it failed to redeem (I had to manually click the button).
Before: 22/09/22 12:50:05 - INFO - [claim_bonus]: 🎁 Claiming the bonus for Streamer(username=XXX, channel_id=XXX, channel_points=804.77k)! 22/09/22 12:50:05 - INFO - [on_message]: 🚀 +70 → Streamer(username=XXX, channel_id=XXX, channel_points=804.84k) - Reason: CLAIM.
After:
22/09/22 13:35:07 - INFO - [claim_bonus]: 🎁 Claiming the bonus for Streamer(username=XXX, channel_id=XXX, channel_points=805.11k)! 22/09/22 13:40:07 - INFO - [on_message]: 🚀 +14 → Streamer(username=XXX, channel_id=XXX, channel_points=805.12k) - Reason: WATCH. 22/09/22 13:40:14 - INFO - [on_message]: 🚀 +70 → Streamer(username=XXX, channel_id=XXX, channel_points=805.19k) - Reason: CLAIM.
Edit: restarted the script and they claimed. Will continue to monitor.
after the last update this happened and I don't understand what is wrong.
I tried everything I could but no use.
edit: I see other people having the same issue in #606 .
I came back to the miner today and it had stopped claiming drops again. Updated constants.py and Twitch.py to their latest versions, restarted the script, no change, watch streaks are claimed but drops are not successfully claimed.
Observing a similar thing. The Script posts the update "Claim
Can confirm the issue. Twitch just won't stop fighting automation. :(. What is interesting, I have several accounts, and some of them are still claiming bonuses like nothing changed.
Can confirm the issue. Twitch just won't stop fighting automation. :(. What is interesting, I have several accounts, and some of them are still claiming bonuses like nothing changed.
+1, having the same issue again today.
Im having the same issue I need to manually click to have the 50 points with each streamers otherwise the bot is working good..
also having issues with the bot claiming the bonus box but only on some accounts
Fix another bug :) Twitch update
Client-Version
more frequent than I thought, so I changeupdate_client_version
function to be called on everypost_gql_request
. Hope this help :)
I have version before this fix and i still receive bonus points without any problem, but then my script works without reseting it for days or so. Maybe this information gonna help with something.
I tried to use this version (1.1) and worked after launched 2/3 times the run.py file and restart my device. I had the problem 2 times and solved it like that. Now it's getting +50 and working with my telegram bot fine. Hope it will help
Fix another bug :) Twitch update
Client-Version
more frequent than I thought, so I changeupdate_client_version
function to be called on everypost_gql_request
. Hope this help :)Can someone mention how to implement the fix? [is it just replacing the 2 mentioned files or is there more to it?]
Yes. You need to replace constants.py and Twitch.py.
Definitely sounds stupid but how do I copy the new code? If I plain copy it, it copies with alot of extra stuff and if i remove it gives error (probably i didnt remove properly), any way to just copy the new code ? and simple replace? (if i download the whole thing again, it still gives me the old files)
Here Release
For me this doesn't work, its random as it seems which accounts have issues. I use a sh file which starts all my Bots at the same time, and 40 % of them are facing the issue that they don't get the 50 Coins. But the funny thing is, everytime I restart this it shuffels which of them doesn't work.
I tried to use this version (1.1) and worked after launched 2/3 times the run.py file and restart my device. I had the problem 2 times and solved it like that. Now it's getting +50 and working with my telegram bot fine. Hope it will help
Fix another bug :) Twitch update
Client-Version
more frequent than I thought, so I changeupdate_client_version
function to be called on everypost_gql_request
. Hope this help :)Can someone mention how to implement the fix? [is it just replacing the 2 mentioned files or is there more to it?]
Yes. You need to replace constants.py and Twitch.py.
Definitely sounds stupid but how do I copy the new code? If I plain copy it, it copies with alot of extra stuff and if i remove it gives error (probably i didnt remove properly), any way to just copy the new code ? and simple replace? (if i download the whole thing again, it still gives me the old files)
Here Release
It was working but seems like it's broken again, any idea to fix it?
Can confirm mine is having the same issue now, no longer seems able to claim the +50 points, or place predictions. Maybe fully broken again?
I can confirm I am having the same issues using this patch, no bonus 50 channel points claimed, no bets placed.
For me this doesn't work, its random as it seems which accounts have issues. I use a sh file which starts all my Bots at the same time, and 40 % of them are facing the issue that they don't get the 50 Coins. But the funny thing is, everytime I restart this it shuffels which of them doesn't work.
I tried to use this version (1.1) and worked after launched 2/3 times the run.py file and restart my device. I had the problem 2 times and solved it like that. Now it's getting +50 and working with my telegram bot fine. Hope it will help
Fix another bug :) Twitch update
Client-Version
more frequent than I thought, so I changeupdate_client_version
function to be called on everypost_gql_request
. Hope this help :)Can someone mention how to implement the fix? [is it just replacing the 2 mentioned files or is there more to it?]
Yes. You need to replace constants.py and Twitch.py.
Definitely sounds stupid but how do I copy the new code? If I plain copy it, it copies with alot of extra stuff and if i remove it gives error (probably i didnt remove properly), any way to just copy the new code ? and simple replace? (if i download the whole thing again, it still gives me the old files)
Here Release
Yes, I haved the same issue, But I closed only bots which didn't get 50 coins and started them again, then part of them again worked good. And I did this until all the bots started working normally. But now again all bots stopped getting 50 coins.
@nilarom Same problem, yesterday at 7PM (GMT+2) the bot (working fine) suddenly stopped bets and claims but still getting +10. Even if I try to reboot or whatever it wont work...
Same issue here.