Giter VIP home page Giter VIP logo

django-housing-price-search-web's Introduction

Project Name

Brief Project Overview: This project utilizes the Django framework to create a web application for querying housing price information in various cities. It involves web scraping to collect housing price data. The backend reads and processes the data, passing it to the frontend for display and generating line charts.

README.md is also available in the following languages:

How to Run

Below are the basic steps to run the project locally:

  1. Clone the project to your local machine:

    git clone [https://github.com/your-username/your-repo.git](https://github.com/Enl1ghtener/Django-housing-price-srch-web)
  2. Navigate to the project directory:

    cd your-repo
  3. Create a virtual environment (optional):

    python -m venv venv
  4. Activate the virtual environment:

    • On Windows:

      .\venv\Scripts\activate
    • On macOS/Linux:

      source venv/bin/activate
  5. Install dependencies:

    pip install -r requirements.txt
  6. Run the development server:

    python manage.py runserver
  7. Open http://127.0.0.1:8000/ in your browser to view the project.

Project Structure

Provide a brief explanation of the project's directory structure and main files.

  • Django_first: Main project directory
    • Django_first: Django framework
    • crwal: Web scraping
    • stu: Main application directory
    • templates/: HTML template files
    • static/: Static files (CSS, JS, images, etc.)
    • views.py: View functions
    • ...
    • manage.py: Django management script
    • db.sqlite3: Database

Data Crawling and Processing

Data is obtained through the crwal_houseprice.py spider program. Due to the variation in city URLs, only 15 cities were manually crawled.

Notes

In addition to the city search function, the project also includes a test function for student login of login and register, which is written in the STU

The code only has Chinese comments.

This is a practice project and may have some shortcomings, with potential updates in the future.

License

MIT License

Copyright (c) [year] [fullname]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

django-housing-price-search-web's People

Contributors

enl1ghtener avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.