FanfictionBot / reddit-ffn-bot

A reddit auto reply bot.
53 stars 18 forks source link

Add support to add kwargs to cache.get_page #61

Closed StuxSoftware closed 9 years ago

StuxSoftware commented 9 years ago

In preparation to add other sites.

Conflicts with #52 Resolve merge conflict by replacing the conflict at line 57 with def get_page(self, page, throttle=0, **kwargs)

tusing commented 9 years ago

Will merge. Could you please explain what

% (
            self.site,
            re.match(LINK_REGEX%self.site, self.url).groupdict()["sid"]
        )

does in get_url()?

tusing commented 9 years ago

And also this change:

LINK_REGEX = "http(s?)://((www|m)\\.)?%s/s/(?P<sid>\\d+).*"
StuxSoftware commented 9 years ago

I will explain your questions where the changes were made. See #62