rdavydov / Twitch-Channel-Points-Miner-v2

A simple script that will watch a stream for you and earn the channel points.
GNU General Public License v3.0
1.21k stars 352 forks source link

invalid url none #511

Open VitaliShilov opened 5 months ago

VitaliShilov commented 5 months ago

Describe the bug

Сниjjмок

Steps to reproduce

start miner

Expected behavior

fix

Operating system

win 10 x64

Python version

3.10.11

Miner version

1.9.5

Other relevant software versions

No response

Logs

log.zip

Additional context

No response

OPRESSORZXD commented 5 months ago

same bug here

ZARAEM commented 5 months ago

+1

gdcfxvnjvbncvb commented 5 months ago

Had the same issue. I downloaded a fresh copy (git clone https://github.com/rdavydov/Twitch-Channel-Points-Miner-v2.git), only kept the "analytics" folder, and redone the "run.py" from the "example.py" file of that fresh copy. I didn't copy the "cookies" folder or the "run.py" file from an older version, or older folder.

OPRESSORZXD commented 5 months ago

Had the same issue. I downloaded a fresh copy (git clone https://github.com/rdavydov/Twitch-Channel-Points-Miner-v2.git), only kept the "analytics" folder, and redone the "run.py" from the "example.py" file of that fresh copy. I didn't copy the "cookies" folder or the "run.py" file from an older version, or older folder.

you're talking chinese to me, I didn't find any analytics folder or run.py or even that example.py you mentioned. will I be seeing all this if I git clone instead of download the zip?

gdcfxvnjvbncvb commented 5 months ago

you're talking chinese to me, I didn't find any analytics folder or run.py or even that example.py you mentioned. will I be seeing all this if I git clone instead of download the zip?

The "analytics" folder only appears if you use/activate the Analytics. By default, it is disabled. If you didn't enable it, you won't have an analytics folder. enable_analytics=False, # Disables Analytics if False. Disabling it significantly reduces memory consumption

If you download the .zip file, there is an "example.py" in it. Rename "example.py" to "run.py" and modify it for your needs. Important lines would be the following ones, especially the "make prediction" that is on True in the example.py: username="your-twitch-username", password="write-your-secure-psw", make_predictions=False, # If you want to Bet / Make prediction

And the following block can be reduced: Text in "example.py": twitch_miner.mine( [ Streamer("streamer-username01", settings=StreamerSettings(make_predictions=True , follow_raid=False , claim_drops=True , watch_streak=True , bet=BetSettings(strategy=Strategy.SMART , percentage=5 , stealth_mode=True, percentage_gap=20 , max_points=234 , filter_condition=FilterCondition(by=OutcomeKeys.TOTAL_USERS, where=Condition.LTE, value=800 ) ) )), Streamer("streamer-username02", settings=StreamerSettings(make_predictions=False , follow_raid=True , claim_drops=False , bet=BetSettings(strategy=Strategy.PERCENTAGE , percentage=5 , stealth_mode=False, percentage_gap=20 , max_points=1234 , filter_condition=FilterCondition(by=OutcomeKeys.TOTAL_POINTS, where=Condition.GTE, value=250 ) ) )), Streamer("streamer-username03", settings=StreamerSettings(make_predictions=True , follow_raid=False , watch_streak=True , bet=BetSettings(strategy=Strategy.SMART , percentage=5 , stealth_mode=False, percentage_gap=30 , max_points=50000 , filter_condition=FilterCondition(by=OutcomeKeys.ODDS, where=Condition.LT, value=300 ) ) )), Streamer("streamer-username04", settings=StreamerSettings(make_predictions=False , follow_raid=True , watch_streak=True )), Streamer("streamer-username05", settings=StreamerSettings(make_predictions=True , follow_raid=True , claim_drops=True , watch_streak=True , bet=BetSettings(strategy=Strategy.HIGH_ODDS , percentage=7 , stealth_mode=True, percentage_gap=20 , max_points=90 , filter_condition=FilterCondition(by=OutcomeKeys.PERCENTAGE_USERS, where=Condition.GTE, value=300 ) ) )), Streamer("streamer-username06"), Streamer("streamer-username07"), Streamer("streamer-username08"), "streamer-username09", "streamer-username10", "streamer-username11" ], # Array of streamers (order = priority) followers=False, # Automatic download the list of your followers followers_order=FollowersOrder.ASC # Sort the followers list by follow date. ASC or DESC )

Reduced form: twitch_miner.mine(["streamer-username01", "streamer-username02", "streamer-username03"], # Array of streamers (order = priority) followers=False, # Automatic download the list of your followers followers_order=FollowersOrder.ASC # Sort the followers list by follow date. ASC or DESC )