Code Monkey home page Code Monkey logo

events-calendar's Introduction

Denver Local Venue Scraper

This is a web scraper that collects data from local venues in Denver. The scraped data includes venue names, dates for events, ticket links, websites, and adding an event to authorized google account.

Setup

Dependencies

  • Ruby 2.7.0
  • Rails 7.0.1
  • PostgreSQL

Installation

  1. Clone the repository
  2. Install dependencies: bundle install
  3. Create and migrate the database: rails db:create && rails db:migrate
  4. Set up environment variables:
    • GOOGLE_CLIENT_ID
    • GOOGLE_CLIENT_SECRET
  5. Start the server: rails s or 'bin/dev'

Authentication

This app uses Devise and Google OAuth 2 for authentication. To use Google OAuth 2, you will need to set up a Google Cloud Console project and create OAuth 2 credentials. See Google's documentation for instructions.

Adding Events to User Calendars

This app uses the Google Calendar API to allow users to add events to their Google calendars. To use this feature, you will need to enable the Google Calendar API for your Google Cloud Console project and set up the necessary credentials. See Google's documentation for instructions.

Usage

Web Scraper

To run the web scraper, use the following Rake task: rake scrape_load:all. Individual venues can be scraped by passing the venue's nameas an argument to the rake task, like so: rake scape_load:['Venue Name']

Calendar Integration

To add an event to a user's calendar, send a POST request to /shows/:id/add_to_calendar with the following parameters:

  • access_token: The user's access token from Google OAuth 2
  • start_time: The start time of the event in YYYY-MM-DDTHH:mm:ss format (e.g. 2023-02-25T19:00:00)
  • end_time: The end time of the event in YYYY-MM-DDTHH:mm:ss format (e.g. 2023-02-25T22:00:00)
  • title: The title of the event
  • location: The location of the event

Dependencies

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com//. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The app is available as open source under the terms of the MIT License.

events-calendar's People

Contributors

dkulback 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.