INTRODUCTION
There are three parts to the installation process Setup Terminal, Setup Workspace and Run with.
SETUP Terminal
NOTE: REPLACE yourusername WITH THE NAME OF YOUR ACCOUNT.
FOR WINDOWS 10
- If you are using WINDOWS 10, then follow this link to setup Windows Subsystem For Linux.
- Copy setup_win10.ps1 from Installer folder to your C:\Users\yourusername\Documents folder.
- Run powershell from Windows Start Menu. In the powershell, type:
You are done. Skip to Setup Workspace section.
cd C:\Users\yourusername\Documents powershell -ExecutionPolicy ByPass -File setup_win10.ps1
FOR WINDOWS [alternative]
- Copy setup.ps1 a.k.a windows shell script from the repository to your C:\Users\yourusername\Documents folder.
- Run powershell from Windows Start Menu.
- In the powershell, type:
cd C:\Users\yourusername\Documents
- To start downloading, in the powershell type:
powershell -ExecutionPolicy ByPass -File setup.ps1
- If everything goes well, then you are done.
FOR macOS & LINUX
- Copy setup.sh to your Downloads folder.
- Open terminal.
- In the terminal, type:
cd ~/Downloads
- To start downloading, in the terminal type:
sh setup.sh
- If everything goes well, then you are done.
Setup Workspace
NOTE: For macOS/Linux, replace C:\Users\yourusername with just the symbol ~ and forwardslash (\) with backslash (/) in the path. Instead of launching cmder, you will be launching terminal.
IMPORTANT: Use the link from the ABOUT page of Facebook profile.
- Replace the word yourusername with the name of your account whenever u see below.
- Create a folder in C:\Users\yourusername\Documents folder. For example, name it ServiceList.
- Copy iterate.sh, getBusiness.sh, getInfo.pl to the C:\Users\yourusername\Documents\ServiceList folder.
- Create a list of links that you want in a text file called list.txt in the C:\Users\yourusername\Documents\ServiceList folder. Enter all the links that you have in separate lines.
- Now proceeed to the relevant Run with section.
Run with cmder
- Run cmder.exe and go into C:\Users\yourusername\Documents\ServiceList folder by typing:
cd C:\Users\yourusername\Documents\ServiceList
- Start running by: (assuming u already created a list of links)
If you have a list of html, then u can do:
sh iterate.sh --input list.txt
If you have a list with different name (say SHREK.txt):sh iterate.sh --html --input list.txt
If you created list.txt using Windows' notepad, then use this:sh iterate.sh --input SHREK.txt
sh iterate.sh --win-input --input list.txt
Run with Windows Linux Subsystem
- Open your linux terminal. Go to your directory by typing the following into your terminal.
cd mnt/c/Users/yourusername/Documents/ServiceList
- Convert DOS formatted script to UNIX compatible script [Optional].
./dos2unix.sh iterate.sh
./dos2unix.sh getBusiness.sh
./dos2unix.sh getInfo.pl
- Type the following if you use terminal to create your list.
./iterate.sh --win-subsys --input list.txt
- Type the following if you use Notepad to create your list.
./iterate.sh --win-subsys --win-input --input list.txt