A specialized web scraper designed to extract mobile device specifications from Mobiledokan and seamlessly integrate them with the Arena Products Store (APS) WordPress plugin.
Before you begin, make sure your setup includes the following:
- Node.js: Install the latest version (Download here)
- WordPress: A fresh and ready-to-use installation (WordPress)
- Duplicator Pro: Backup and migration plugin for WordPress (Get Duplicator Pro)
- Arena Products Store: Installed and activated WordPress plugin (Available on CodeCanyon)
Follow these steps to set up the local scraping environment:
- Clone the Repository
git clone https://github.com/nfsnayem/Scraper.git
- Navigate to the Directory
cd Scraper - Install Dependencies
npm install
- Start the Server
npm start
Tip
The local server will be accessible at http://localhost:3080.
Start with a fresh and ready-to-use WordPress installation:
- Go to Plugins → Add New → Upload Plugin
- Upload the Duplicator Pro plugin file and click Activate
- Download the Duplicator backup ZIP file by clicking the provided link
- In your WordPress dashboard, open Duplicator Pro and navigate to the Import section
- Upload the downloaded
tech_duplicatorZIP file - Select the
tech_duplicatorpackage and begin the restoration process
Once the Restoration is Complete, Generate an Application Password in WordPress:
- Log in to your WordPress dashboard.
- Navigate to Users.
- Click on Edit User.
- Scroll down to the Application Passwords section.
- Enter a name for your application in the New Application Password Name field.
- Click on Add New Application Password.
- Copy the generated password.
Warning
Make sure to save this password in a secure location. You will not be able to view it again after leaving the page.
Once you have downloaded the project, follow these steps:
- Open the project folder in the VS Code editor.
- Inside, you will find a file named
env.example. - Rename
env.exampleto.env. - Open the
.envfile. It will look like this:
APP_RUNNING_PORT=3030
WP_SITE_URL='https://www.yourdomain.com'
WP_API_URL='https://www.yourdomain.com/wp-json/wp/v2/media'
WP_USER='user name'
WP_APP_PASSWORD='xxxxxxxxxxx'Replace the values with your own credentials and configuration:
APP_RUNNING_PORT→ Your preferred port numberWP_SITE_URL→ Your WordPress site URLWP_API_URL→ Your WordPress media API endpointWP_USER→ Your WordPress usernameWP_APP_PASSWORD→ The application password you generated earlier
Tip
Congratulations! Your local setup is now ready to go.
The scraper uses a dedicated browser extension to trigger data extraction directly from the source site.
- Open your browser and navigate to the Extensions page (e.g.,
chrome://extensions). - Enable Developer mode (toggle in the top right).
- Click Load unpacked.
- Select the extension folder from your local repository:
\scraper\extension - Navigate to any Mobiledokan device page and click the extension icon to begin.
Caution
This application is strictly compatible with Mobiledokan URLs. Attempting to scrape other domains may result in errors.
For a faster workflow, use the provided batch file to bypass manual terminal commands:
- Right-click
executor.batand select Edit. - Replace the placeholder path with your actual local project path.
- Save and double-click the file to launch the server automatically.
Tamim Hossain – Thank you for your valuable contributions and support!