
Strumento da riga di comando per estrarre e scaricare media (foto, video, storie) da utenti e community di VKontakte utilizzando l'API VK. Supporta più destinazioni, filtraggio per tipo di media e download incrementali.
vk-scraper è un'applicazione da riga di comando scritta in Python che estrae e scarica i dati di utenti e comunità VK. Usalo in modo responsabile.
Per capire meglio come funziona, vai alla documentazione.
Per la versione stabile (vk-scraper):
git clone https://aur.archlinux.org/vk-scraper.git vk-scraper
Per la versione git (vk-scraper-git):
git clone https://aur.archlinux.org/vk-scraper-git.git vk-scraper
Poi compila e installa:
cd vk-scraper
makepkg -sic
Oppure usa un AUR helper a tua scelta.
Per la versione stabile:
$ pip3 install vk-scraper --upgrade --user
Per la versione git:
$ pip3 install git+https://github.com/vanyasem/VK-Scraper.git --upgrade --user
Per estrarre media:
vk-scraper <username/community> -u <your username> -p <your password>
Per impostazione predefinita, i media scaricati verranno inseriti in <directory corrente>/<username>.
Per specificare più utenti/comunità, passa un elenco di utenti separati da virgole:
vk-scraper username1,community1,username2,username3,community2
Puoi anche fornire un file contenente un elenco di utenti/comunità:
vk-scraper -f scrape_list.txt
$ cat vk_users.txt
username1
community1
username2
username3
community2
...
I nomi utente possono essere separati da newline, virgole, punto e virgola o spazi.
--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)