This Node.js application simplifies the process of gathering publicly available Sheypoor posts, converting them into a structured JSON format for easy analysis and use.
- Node.js: Download and install Node.js from https://nodejs.org/
- npm (Node Package Manager): Comes bundled with Node.js.
- axios
- cheerio
- express
1.download and install node.js and dependencies
git clone "https://github.com/devshashtag/sheypoor-post-collector.git"
cd sheypoor-post-collector
npm install
npm run server
2.open your web browser and visit: http://127.0.0.1:8080
3.Use the dropdown menu to choose the city you want to collect data from
4.Enter the starting and ending page numbers (minimum 1, maximum 10000)
5.Click the "جستجو" (Search) button. The app will begin downloading posts
6.ou can see the progress of the download for each page
7.Once the download is complete or at any time during the process, click the "Download" button to save the data in JSON format
8.You can go back to the home screen and begin a new data collection. However, any posts downloaded during the previous session will be lost unless you've saved them as a JSON file.
API rate limits: Due to API limitations, you may encounter an error message every 10 pages. To continue downloading, you need to change your IP address.
1.If you're using Wi-Fi, restart your router. 2.If you're using mobile data, turn your mobile data off and on again.
and then click continue button to download the remaining pages.
No internet connection: If you don't have an internet connection, you'll receive an error message. Ensure your internet connection is active before starting the download.