Skip to content

devshashtag/sheypoor-post-collector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sheypoor Post Collector

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.

home


collector status-done view


collector status-done view

Requirements

  • Node.js: Download and install Node.js from https://nodejs.org/
  • npm (Node Package Manager): Comes bundled with Node.js.

NPM Dependencies

  • axios
  • cheerio
  • express

Installation

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

home dropdown

4.Enter the starting and ending page numbers (minimum 1, maximum 10000)

home page-numbers valid-ranges

5.Click the "جستجو" (Search) button. The app will begin downloading posts

collector view

6.ou can see the progress of the download for each page

collector post link

7.Once the download is complete or at any time during the process, click the "Download" button to save the data in JSON format

collector download

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.

Error Handling

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.

collector alert limit


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.

collector alert error

About

gathering publicly available Sheypoor posts in JSON format

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published