mirror of
https://github.com/bellingcat/vk-url-scraper.git
synced 2026-06-12 13:28:37 +03:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
edb02ae049 | ||
|
|
284fd3fdf7 | ||
|
|
3078495a2a |
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@@ -30,10 +30,10 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python: ['3.7', '3.10']
|
python: ['3.7', '3.10']
|
||||||
task:
|
task: # --show-capture=no on purpose
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
pytest --color=yes tests/
|
pytest --show-capture=no --color=yes tests/
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- python: '3.10'
|
- python: '3.10'
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ class VkScraper:
|
|||||||
"payload": {"more": "original JSON response as dict which you can parse for more data"}
|
"payload": {"more": "original JSON response as dict which you can parse for more data"}
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
WALL_PATTERN = re.compile(r"(wall.{0,1}\d+_\d+)")
|
WALL_PATTERN = re.compile(r"(wall.{0,1}\d+_\d+)")
|
||||||
PHOTO_PATTERN = re.compile(r"(photo.{0,1}\d+_\d+)")
|
PHOTO_PATTERN = re.compile(r"(photo.{0,1}\d+_\d+)")
|
||||||
VIDEO_PATTERN = re.compile(r"(video.{0,1}\d+_\d+)")
|
VIDEO_PATTERN = re.compile(r"(video.{0,1}\d+_\d+)")
|
||||||
@@ -186,7 +187,7 @@ class VkScraper:
|
|||||||
----------
|
----------
|
||||||
video_ids : List[str]
|
video_ids : List[str]
|
||||||
list with valid video ids like "video123123_1231"
|
list with valid video ids like "video123123_1231"
|
||||||
|
|
||||||
Returns
|
Returns
|
||||||
-------
|
-------
|
||||||
a list of dict as specified in the class documentation.
|
a list of dict as specified in the class documentation.
|
||||||
@@ -242,7 +243,7 @@ class VkScraper:
|
|||||||
----------
|
----------
|
||||||
photo_ids : List[str]
|
photo_ids : List[str]
|
||||||
list with valid photo ids like "photo123123_1231"
|
list with valid photo ids like "photo123123_1231"
|
||||||
|
|
||||||
Returns
|
Returns
|
||||||
-------
|
-------
|
||||||
a list of dict as specified in the class documentation.
|
a list of dict as specified in the class documentation.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ _MAJOR = "0"
|
|||||||
_MINOR = "1"
|
_MINOR = "1"
|
||||||
# On main and in a nightly release the patch should be one ahead of the last
|
# On main and in a nightly release the patch should be one ahead of the last
|
||||||
# released build.
|
# released build.
|
||||||
_PATCH = "2"
|
_PATCH = "5"
|
||||||
# This is mainly for nightly builds which have the suffix ".dev$DATE". See
|
# This is mainly for nightly builds which have the suffix ".dev$DATE". See
|
||||||
# https://semver.org/#is-v123-a-semantic-version for the semantics.
|
# https://semver.org/#is-v123-a-semantic-version for the semantics.
|
||||||
_SUFFIX = ""
|
_SUFFIX = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user