Giter Club home page Giter Club logo

open_graph_scraper's Introduction

Open Graph Scraper

Versions

  • Ruby version: 2.6.3
  • Rails version 6.0.1
  • Database: sqlite

Set Up

  • rvm install 3.6.3
  • bundle
  • rake db:create
  • rake db:migrate
  • rails s -p 3004
  • rake jobs:work

Testing with curl

  • Request web site
curl -X POST https://aryeh.beitz.hiring.keywee.io/stories/\?url\=https://il.funzing.com

Response:

{"given_url":"https://il.funzing.com","found_canonical_url":"https://il.funzing.com/","token":"23c188f3160b02b0ad7c348480ceb314"}

Now use the token:

curl http://aryeh.beitz.hiring.keywee.io/stories/23c188f3160b02b0ad7c348480ceb314

Response:

{"id":11,"scrape_status":"pending"}

Run again:

curl http://aryeh.beitz.hiring.keywee.io/stories/23c188f3160b02b0ad7c348480ceb314

Now we have the data:

{"url":"https://il.funzing.com/","type":"website","title":"הכירו את Funzing - אתר הפנאי הגדול בישראל","images":[[{"url":"https://d1cgjtrsdeqk19.cloudfront.net/site-assets/v1/default-facebook-share/experiences_small_IL.jpg","type":null,"width":"770","height":"430","alt":null}]],"id":27,"updated_time":"2019-11-21T01:15:19.590+0000","scrape_status":"done"}

open_graph_scraper's People

Contributors

aryehbeitz avatar

Watchers

James Cloos avatar  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.