Commit Graph

44 Commits

Author SHA1 Message Date
Mike Fährmann
00c6821a3f replace 2-element f-strings with simple '+' concatenations
Python's 'ast' module and its 'NodeVisitor' class
were incredibly helpful in identifying these
2025-12-22 11:26:04 +01:00
Mike Fährmann
e006d26c8e Revert "use f-strings when building 'pattern'"
revert d7c97d5a97.
2025-12-20 22:07:37 +01:00
Mike Fährmann
968597a302 yield 3-tuples for Message.Directory
adapt tuples to the same length and semantics as other messages
2025-12-05 21:39:52 +01:00
Mike Fährmann
f1aa3af119 [vsco] use '"browser": "firefox"' by default (#8127)
and re-enable TLS 1.2 cipher suites
i.e. revert c7fe6ba691
2025-12-01 16:41:11 +01:00
Mike Fährmann
d7c97d5a97 use f-strings when building 'pattern' 2025-10-20 21:23:11 +02:00
Mike Fährmann
085616e0a8 [dt] replace 'text.parse_datetime()' & 'text.parse_timestamp()' 2025-10-17 17:43:06 +02:00
Mike Fährmann
c7fe6ba691 [vsco] disable TLS 1.2 cipher suites by default (#7984 #7986) 2025-08-07 20:58:29 +02:00
Appu
75582e38e9 [VSCO] Fix JSON returned by VSCO (#7821)
* [VSCO] Fix JSON returned by VSCO

The JSON returned contains multiple `undefined` values that aren't valid
JSON, changing these values to `null` fixes the issue.

* [VSCO] Make JSON fix more targeted

Change only occurrences that are values of a key-value
2025-07-14 15:29:22 +02:00
Mike Fährmann
f2a72d8d1e replace 'request(…).json()' with 'request_json(…)' 2025-06-29 17:50:19 +02:00
Mike Fährmann
9dbe33b6de replace old %-formatted and .format(…) strings with f-strings (#7671)
mostly using flynt
https://github.com/ikamensh/flynt
2025-06-29 17:50:19 +02:00
Mike Fährmann
41191bb60a 'match.group(N)' -> 'match[N]' (#7671)
2.5x faster
2025-06-18 13:05:58 +02:00
Mike Fährmann
e08ec7e083 update copyright notices 2025-06-13 00:03:41 +02:00
Mike Fährmann
811b665e33 remove @staticmethod decorators
There might have been a time when calling a static method was faster
than a regular method, but that is no longer the case. According to
micro-benchmarks, it is 70% slower in CPython 3.13 and it also makes
executing the code of a class definition slower.
2025-06-12 22:50:52 +02:00
Mike Fährmann
e199396872 [common] simplify 'user' extractors by using 'Dispatch' mixin 2025-05-24 18:04:53 +02:00
Mike Fährmann
198593bf46 [vsco] fix extracting videos from '/gallery' results (#7113) 2025-03-04 16:10:48 +01:00
Mike Fährmann
3a5adbf644 [vsco] fix 'video' extractor (#7113)
fixes regression introduced in 6420210b0f
2025-03-04 09:43:05 +01:00
Mike Fährmann
6420210b0f [vsco] improve 'm3u8' handling 2025-02-12 20:44:43 +01:00
Mike Fährmann
f1f27eb2ab [vsco] support '/video/' URLs (#4295 #6973)
requires yt-dlp/youtube-dl to handle m3u8 manifests
2025-02-12 19:12:00 +01:00
CasualYT31
a8c4665b5a VSCO: prevPageToken Bugfix
#6887
2025-01-28 11:50:31 +00:00
Mike Fährmann
095f278d6f [vsco] add 'include' option (#5911) 2024-07-31 12:32:04 +02:00
Mike Fährmann
bd8e4797e5 [vsco] add 'avatar' extractor (#5341) 2024-05-02 18:12:19 +02:00
Mike Fährmann
8a63801311 [vsco] add 'spaces' extractor (#5202)
for spaces listed on a user page
2024-02-17 18:20:48 +01:00
Mike Fährmann
7033cc14e9 [vsco] add 'space' extractor (#5202) 2024-02-17 01:54:05 +01:00
Mike Fährmann
a453335a9f remove test results in extractor modules
and add generic example URLs
2023-09-11 16:30:55 +02:00
Mike Fährmann
dd884b02ee replace json.loads with direct calls to JSONDecoder.decode 2023-02-09 15:22:00 +01:00
Mike Fährmann
b0cb4a1b9c replace 'text.extract()' with 'text.extr()' where possible 2022-11-05 01:14:09 +01:00
Mike Fährmann
f375ec0ffa [vsco] fix 'collection' extraction 2022-08-27 21:16:22 +02:00
Mike Fährmann
c6a9bab019 update extractor test results 2022-07-12 15:49:22 +02:00
Mike Fährmann
bd08ee2859 remove most 'yield Message.Version' statements
only leave them in oauth.py as noop results
2021-08-16 03:10:48 +02:00
Mike Fährmann
daeef8a5e3 [vsco] handle missing 'description' fields 2020-07-27 14:45:17 +02:00
Mike Fährmann
504de79d8b [vsco] fix extraction 2020-04-30 21:12:06 +02:00
Mike Fährmann
dfc0557807 [vsco] fix collection extraction 2020-04-11 23:06:29 +02:00
Mike Fährmann
4e361b3008 add tests for specific datetime values 2020-02-23 16:48:30 +01:00
Mike Fährmann
247c9e1416 [vsco] update gallery URL pattern 2020-02-22 21:39:31 +01:00
Mike Fährmann
5d9437b398 [vsco] skip "invalid" entities 2020-02-15 23:49:44 +01:00
Mike Fährmann
bf658fd84b [vsco] implement 'videos' option 2019-12-19 18:34:19 +01:00
Mike Fährmann
964dc57286 [vsco] improve image resolutions
https://im.vsco.co/ URLs redirect to the appropriate CDN server
and occasionally insert a '/1200x1600/' into the image path,
limiting image dimensions.

This commit constructs redirect targets out of the given
im,vsco.co URLs without sending extra HTTP requests
and without any "builtin" resolution restrictions.
2019-12-12 00:27:45 +01:00
Mike Fährmann
0629fe8fa4 [vsco] fix user profile extraction … again
Given the pattern from last time, collections will also change
in due time and use cursor-based pagination.
2019-12-11 23:57:56 +01:00
Mike Fährmann
ea094692c8 [vsco] fix collection extraction (#480) 2019-11-20 22:06:23 +01:00
Mike Fährmann
5513b66eb0 [vsco] fix user profile extraction 2019-11-12 23:36:48 +01:00
Mike Fährmann
e7690ac694 [vsco] update URL pattern (closes #410) 2019-09-08 11:37:27 +02:00
Mike Fährmann
4a0c98bfc9 miscellaneous fixes and adjustments 2019-08-01 22:09:43 +02:00
Mike Fährmann
279db2c5b2 [vsco] add collection & image extractor + video support (#331) 2019-07-26 19:06:15 +02:00
Mike Fährmann
60cf40380a [vsco] add user extractor (#331) 2019-07-23 16:23:11 +02:00