Working ONLY on linux
This program print phones from avito's page to stdout.
There is also a garbage in the stderr, so you can redirect it to
/dev/null with:
#command_starts_program# 2> /dev/null
You need tesseract and imagemagic to run this script. They can be installed with:
sudo apt install tesseract-ocr
sudo apt install imagemagick-6.q16
or
sudo apt-get install tesseract-ocr
sudo apt-get install imagemagick-6.q16
Also you need to have chrome and selenium plugin to chrome.
To build project you need to add additional modules to it. They are locating in packages
plugins/selenium-java-@version and
plugins/selenium-java-@version/libs
Launch with arguments:
- -phones -link (link)
- -phones -page (link) (numberOfLinks-opt)
- -phones -pages (link) (numberOfPages)
- -screenshot (link)
(link) must point to
- housing page
- page with list of housings
- first page with list of housings
(numberOfLinks-opt) set how many links from beginning of list of a housings WITH NUMBERS will be loaded. For page with one housing it's useless.