GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tmhalbert/Nextdoor-Script: Scrapes post and comments data from Nextdoor website

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
.env.sample
.env.sample
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
chromedriver
chromedriver
 
 
html_saver.py
html_saver.py
 
 
html_scraper.py
html_scraper.py
 
 
nextdoor.py
nextdoor.py
 
 
posts.csv
posts.csv
 
 
replies.csv
replies.csv
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

Nextdoor Scraper

At the time of development, Nextdoor could not be scraped easily using more traditional methods (e.g. Scrapy, Beautiful Soup, etc.) because requests to retrieve the next set of posts use a "random" number as a parameter.

Thus, this is a simple python script that uses Selenium to simulate user input to scrape relevant data off nextdoor.com. It uses a chromedriver (included in this repo) as the browser.

Requirements

As of the last update, this script will work with Python 3.8.0+. It is highly recommended a virtual environment is used for this script.

Once a virtual environment is built, pip install -r requirements.txt must be run in a command prompt within the Nextdoor_Script directory to install relevant packages. The script will not work without these libraries.

Using this Script

Feel free to fork this repo and make it your own! This was just a personal project of mine, but if it is useful to anyone else, I'm happy to share this project. If you'd like to use it as is:

  1. Clone the repository into your directory of choosing.
  2. Create your own .env file, and fill out the variables
  3. Open command prompt, navigate to the Nextdoor_Scraper directory, and run:
    • python nextdoor.py if you don't want to save the html file separately (as backup in case of failure)
    • python html_saver.py if you want to save the html files and python html_scraper.py to scrape the local files separately (more stable for longer scrapes since it'll save the files)

About

Scrapes post and comments data from Nextdoor website

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.