Skip to content

Skynse/ginger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ginger

Ginger is a library for scraping and parsing web pages.

Usage

import { Ginger } from 'https://deno.land/x/ginger/src/mod.ts';

// Get the title of google.com
const text = await fetch("https://google.com").then(res => res.text());
const ginger = new Ginger(text);

const title = ginger.title();
// "Google"

// print the body of the webpage
const body = ginger.body();

// find paragraph
const p = ginger.find("p");
// returns outer html content

Testing

deno test test.ts

About

Web Scraping library for Deno

Resources

Stars

Watchers

Forks

Packages

No packages published