Commit Graph

11 Commits

Author SHA1 Message Date
Mike Fährmann
a383eca7f6 decouple extractor initialization
Introduce an 'initialize()' function that does the actual init
(session, cookies, config options) and can called separately from
the constructor __init__().

This allows, for example, to adjust config access inside a Job
before most of it already happened when calling 'extractor.find()'.
2023-07-25 22:16:16 +02:00
Balgden
4b141cce66 Fix indentation 2023-04-03 13:44:14 +00:00
Balgden
bbc5977121 Fix line length 2023-04-03 13:38:42 +00:00
Balgden
ffd30abcb3 [hotleak] Fix downloading of creators whose name starts with a category name
E.g. `hot4lexi` would start downloading the `hot` section by mistake

This happened because the regex had a negative lookahead for the category names, but didn't ensure that they where followed by either end-of-string or a slash.
2023-04-03 13:30:27 +00:00
Mike Fährmann
7c9b1ec830 [hotleak] optimize decoding video URLs
- use binascii module
- combine slice and reverse step
2023-01-28 15:41:53 +01:00
nifnat
f14dbfe079 Make decode_video_url static (used in both post and creator extractor). 2023-01-28 14:36:49 +00:00
nifnat
bd23a701f3 Tidy up code. 2023-01-27 22:00:41 +00:00
nifnat
7f34f99a26 Reverse engineered obfuscated JS function and reimplemented in python. 2023-01-27 21:30:06 +00:00
Mike Fährmann
72c5d26e85 [hotleak] fix UnboundLocalError (#3288, #3293) 2022-11-23 22:21:59 +01:00
Mike Fährmann
b0cb4a1b9c replace 'text.extract()' with 'text.extr()' where possible 2022-11-05 01:14:09 +01:00
enduser420
bd846abba0 [hotleak] add hotleak extractor (#2909) (#2890) 2022-09-18 13:37:16 +02:00