Post
Topic
Board Mining software (miners)
Re: bitHopper: Python Pool Hopper Proxy
by
anty
on 24/07/2011, 18:41:39 UTC
Code:
[btcworld]
name: BTC World
mine_address: btcworld.de:8332
api_address:http://btcworld.de/statistics
role:info
api_method:re
api_key:Valid\s+shares\s+for\s+current\s+round:([0-9]+(,[0-9]+)*)
api_strip:','
#CHANGE THIS
#http://btcworld.de/signup
user: user
pass: x

This works just fine when I run it through the steps (selectSharesResponse) in python cmd line, but not when I run it "live".
Try this regex:
Code:
api_key:Valid\s+shares\s+for\s+current\s+round:([0-9]+(?:,[0-9]+)*)
This is untested, but the (?:[your RegEx here]) syntax is used if you want to group something but not generate a group in the output.
BitHopper now takes output.group(1) to get the difficulty from regex. That means the first string that you surround with parentheses. I don't know how nested groups are named, but when you use the (?:[your RegEx here]) syntax it shouldn't matter.