Diff
Differences From Artifact [9529aa8abe]:
- File contrib/rcast.py — part of check-in [40eb70e68c] at 2016-12-19 20:17:03 on branch trunk — New plugin: rcast (user: mario, size: 6959) [annotate] [blame] [check-ins using]
To Artifact [1b543a00d6]:
- File contrib/rcast.py — part of check-in [e9c2e9a3a2] at 2020-05-15 19:36:33 on branch trunk — Apply more `self.status(i / pages)` progressbar calls for some channels. (user: mario, size: 6993) [annotate] [blame] [check-ins using]
50 51 52 53 54 55 56 57 58 59 60 61 62 63 | 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | + | # fetch html = "" if search: # pretty much identical (except first page should be /dir/?action=search and POST field) cat = search max_pages = 1 for i in range(1, max_pages + 1): self.status(i / 12.5) html += ahttp.get("%s/%s/page%s" % (self.base, cat, i)) if not re.search('href="/dir/%s/page%s">Next' % (cat, i + 1), html): break # extract ls = re.findall(""" <tr> .*? |