Coder Social home page Coder Social logo

danf96 / trail-finder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vladvitalaru/trail-finder

0.0 0.0 0.0 1.02 GB

Web application which allows users to search for trails across the US

JavaScript 5.14% Python 68.57% CSS 16.73% HTML 9.56%

trail-finder's Introduction

Trail Finder Search Engine ๐ŸŒฒ

Web application which allows users to search for trails across the US

frontpage

Live search suggestions based on trail names

livesearch

Trails returned as cards with information such as location, length, images & activities

results

Word cloud generated based on reviews from scraped sites

cloud

Advanced search filters may be used to narrow search

advsearch

Scraped sites ๐Ÿ”

Trail cards are built using data scraped from the following sites:

Stack โšก

  • Built on Flask back end
  • Jinja templating
  • Whoosh! for search engine
  • Vanilla HTML, CSS & Javascript front end

Dependencies ๐Ÿ”Œ

Python 3.8 and newer required, Pip install the following modules:

  • Flask
  • flask-paginate
  • Whoosh
  • matplotlib
  • pandas
  • wordcloud

Important โ—

  • Extract either samplefiles.zip or fullset.zip in the root directory so the .txt files are inside root/files/file.txt
  • Indexing trail pages may take some time, there are roughly 25k pages in the fullset.zip and 10k in the samplefiles.zip
  • Will also generate word cloud reviews if no matching filename for the cloud image is found.
  • All crawlers can be ran separately to generate files for Whoosh
  • Pagerank calculator relies on Traillink and Oregontrails being crawled at least once

To Run:

  • If using the existing index:
    • Run 'python ./server_whoosh.py'
  • If building a new index:
    • Go into server_whoosh.py, comment out 'mySearcher.existing_index()'
    • Uncomment 'mySearcher.build_index()'
    • Run 'python ./server_whoosh.py'

trail-finder's People

Contributors

danf96 avatar vladvitalaru avatar chanjc14 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.