
VK API का उपयोग करके VKontakte उपयोगकर्ताओं और समुदायों से मीडिया (फ़ोटो, वीडियो, स्टोरीज़) स्क्रैप और डाउनलोड करने के लिए कमांड-लाइन टूल। एकाधिक लक्ष्यों, मीडिया प्रकार फ़िल्टरिंग, और वृद्धिशील डाउनलोड का समर्थन करता है।
vk-scraper एक कमांड-लाइन एप्लीकेशन है जो Python में लिखा गया है और VK उपयोगकर्ता/समुदाय के डेटा को स्क्रैप और डाउनलोड करता है। जिम्मेदारी से उपयोग करें।
यह कैसे काम करता है, इसकी बेहतर समझ के लिए, दस्तावेज़ पर जाएँ।
स्थिर संस्करण के लिए (vk-scraper):
git clone https://aur.archlinux.org/vk-scraper.git vk-scraper
git संस्करण के लिए (vk-scraper-git):
git clone https://aur.archlinux.org/vk-scraper-git.git vk-scraper
फिर बनाएँ और स्थापित करें:
cd vk-scraper
makepkg -sic
या अपनी पसंद का AUR सहायक उपयोग करें।
स्थिर संस्करण के लिए:
$ pip3 install vk-scraper --upgrade --user
git संस्करण के लिए:
$ pip3 install git+https://github.com/vanyasem/VK-Scraper.git --upgrade --user
मीडिया स्क्रैप करने के लिए:
vk-scraper <username/community> -u <your username> -p <your password>
डिफ़ॉल्ट रूप से, डाउनलोड की गई मीडिया <current working directory>/<username> में रखी जाएगी।
एकाधिक उपयोगकर्ताओं/समुदायों को निर्दिष्ट करने के लिए, अल्पविराम से अलग की गई उपयोगकर्ताओं की सूची पास करें:
vk-scraper username1,community1,username2,username3,community2
आप उपयोगकर्ताओं/समुदायों की सूची वाली फ़ाइल भी प्रदान कर सकते हैं:
vk-scraper -f scrape_list.txt
$ cat vk_users.txt
username1
community1
username2
username3
community2
...
उपयोगकर्ता नाम नई पंक्तियों, अल्पविराम, अर्धविराम या रिक्त स्थान से अलग किए जा सकते हैं।
--help -h Show help message and exit
--login-user -u Your VK username
--login-pass -p Your VK password
--filename -f Path to a file containing a list of users/communities to scrape
--destination -d Specify destination folder. By default, media will
be downloaded to <current working directory>/<username>
--retain-username -n Creates a subdirectory for each scraped name when the flag is set
--media-types -t Specify media types to scrape. Enter as space separated values.
Valid values are image, saved, video, story, wall, or none
(defaults to image)
--latest Scrape only new media since the last scrape. Uses the last modified
time of the latest media item in the destination directory for comparasion
--quiet -q Be quiet while scraping
--maximum -m Maximum number of items to scrape
--offset -o Offset from which the scrape starts. 0 is from the oldest. (Defaults to 0)