Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

github.com/Serinolli/scraper-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/Serinolli/scraper-api


Version published
Created
Source

scraper-api

Study repo. Project integrated with WebScraper.
Simple REST API designed for managing data obtained through the associated scraper tool.

Setting up...

Installing MongoDB with Docker

docker run --name reddit-scraper -p 27017:27017 -d mongo

Testing

go run api/main.go

API Endpoints Documentation

Get All Posts

  • URL: /posts
  • Method: GET
  • Description: Retrieves all posts.

Create Posts (main method used by the scraper)

  • URL: /posts
  • Method: POST
  • Description: Creates a list of new posts. If some posts already exist in the database, updates them.

Create Post

  • URL: /post
  • Method: POST
  • Description: Creates a new post.

Get Post

  • URL: /posts/{postId}
  • Method: GET
  • Description: Retrieves a specific post by ID.

Update Post

  • URL: /posts/{postId}
  • Method: PUT
  • Description: Updates a specific post by ID.

Delete Post

  • URL: /posts/{postId}
  • Method: DELETE
  • Description: Deletes a specific post by ID.

FAQs

Package last updated on 06 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc