janot / ivdiff

ivdiff

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ivdiff

scripts to get difference between two Instant View templates

Installing

Install python3 and pip. Then run git clone https://github.com/undrfined/ivdiff; cd ivdiff; pip install -r requirements.txt and you're ready to go.

Cookies file

cookies file is required. default filename is cookies.txt, format is

stel_ssid=f29e11a43********************161499188; stel_ivs=bcf14***********************a38a; stel_token=f444f***********************************************71f7f377b94;

ivdiff.py

get diff for one specific page

usage:

py ivdiff.py <Template> <Template> <URL> [-c <cookies file>]

...where <Template> is a template number if it was submitted to contest (for example 45) or filename with the template code(for example file.xpath). Please do a backup of your code before using filename as one of the templates <URL> is an URL to diff.

batchdiff.py

get diff for a lot of pages from file

usage:

py batchdiff.py <Template> <Template> <List of URLs> [-c <cookies file>] [-p <pool size>]

...where <List of URLs> is a filename with list of all the urls you want to diff and <pool size> is count of threads you want to use (default 5)

spider.py

collect all the URLs automatically and get diff for all of them

usage:

py spider.py <Template> <Template> <domain> [-c <cookies file>] [-p <pool size>]

...where <domain> is a domain name (for example 5minutes.rtl.lu)

russian

ivdiff

скрипты для получения разницы между двумя темплейтами Instant View

Установка

Установите python3 и pip. Затем в терминале напишите git clone https://github.com/undrfined/ivdiff; cd ivdiff; pip install -r requirements.txt ну а дальше по инструкции

Кукисы

Кукисы нужны обязательно. Стандартное название файла должно быть cookies.txt, формат такой:

stel_ssid=f29e11a43********************161499188; stel_ivs=bcf14***********************a38a; stel_token=f444f***********************************************71f7f377b94;

ivdiff.py

получить разницу для определенной страницы

юзать вот так:

py ivdiff.py <Template> <Template> <URL> [-c <cookies file>]

...где <Template> это номер опубликованого темплейта (например 45) или название файла с исходником(например file.xpath). Обязательно делайте бекап перед использованием файла исходника так как оно перезапишет ваш текущий код <URL> это ссылка на страницу

batchdiff.py

получить разницу для массива ссылок

юзать вот так:

py batchdiff.py <Template> <Template> <List of URLs> [-c <cookies file>] [-p <pool size>]

...где <List of URLs> это название файла со ссылками и <pool size> это количество потоков которое вы хотите использовать (стандартно 5)

spider.py

автоматически собирать все ссылки с домена и смотреть разницу

юзать вот так:

py spider.py <Template> <Template> <domain> [-c <cookies file>] [-p <pool size>]

...где <domain> это домен (например 5minutes.rtl.lu)

About

ivdiff


Languages

Language:Python 100.0%