Scraping HTML code of web pages, and extract difference.
321
Scraping HTML code of web pages, and extract difference.

Create a CSV file of URLs to extract differences.
Sample:
1,https://example.com/,https://test.example.com/
2,https://example.com/page1,https://test.example.com/page1
3,https://example.com/page2,https://test.example.com/page2
$ cd <downloadPath>
$ ./diff.sh
$ ./diff.sh
Path of CSV file: <csvFilePath>
Path for the output: <outputResultPath>
Number of multithreading: (1) 1
Waiting time to request page (ms): (1000) 1000
CSV file : 'entered csvFilePath'
output : 'entered outputResultPath'
Threads : 1
Wait time(ms) : 1000
Are you sure you want to continue? [y/N] y
Using this tool without Docker require Python3 and some libraries.
Create a CSV file of URLs to extract differences.
Sample:
1,https://example.com/,https://test.example.com/
2,https://example.com/page1,https://test.example.com/page1
3,https://example.com/page2,https://test.example.com/page2
$ pip3 install beautifulsoup4 pandas html5lib
$ cd <clonePath>
$ ./diff_without_docker.sh
$ ./diff.sh
Path of CSV file: <csvFilePath>
Path for the output: <outputResultPath>
Number of multithreading: (1) 1
Waiting time to request page (ms): (1000) 1000
CSV file : 'entered csvFilePath'
output : 'entered outputResultPath'
Threads : 1
Wait time(ms) : 1000
Are you sure you want to continue? [y/N] y
The result file is some html file and _result.csv. Open html in a browser and open csv in an editor etc.
If BASIC authentication is set to the URL you want to extract the difference, write the authentication information to the CSV file.
Sample:
1,https://example.com/,https://username:[email protected]/
This software is released under the MIT License, see LICENSE.txt.
Content type
Image
Digest
Size
113.3 MB
Last updated
about 7 years ago
docker pull zenpachi/extract-html-differences