Commit Graph

39 Commits (fix-remove-moment-js)

Author SHA1 Message Date
John Holdun f1932e3672
Update README.md 2 years ago
John Holdun 97472cf4f8
Change Name (#688)
Mercury Parser is now Postlight Parser!
2 years ago
Michael Ashley e12c916499
feat: ability to add custom extractors via api (#484)
* feat: ability to add custom extractors via api

* docs: updating readme

* fix: example.com was being used in another test

* fix: timezone was messing up date_published test

* fix: using a unique site for testing

* fix: updated custom extractor api

* docs: updating readme

* fix: removing unused fixture

* fix: updating test description

* feat: ability to add custom extractors via cli
5 years ago
Gina Trapani 9f6f07508c
docs: Add links to README 5 years ago
Drew Bell b6c82f2b16 doc: fix extend typo in README (#340) 5 years ago
Toufic Mouallem 144a797564
feat: Support passing custom headers in requests (#337) 5 years ago
Toufic Mouallem da9606a4cb docs: Add parsing custom HTML to README.md (#326) 5 years ago
Drew Bell b3e2a0ffd1 feat: extract custom types with extend option (#313)
* feat: extract custom types with extend option

Adds an `extend` option that lets you add custom types to be extracted
and returned alongside the defaults, either in a call to `parse()` or in
a custom extractor.

```
Mercury.parse(
  url,
  extend: {
    last_edited: { selectors: ['#last-edited'], defaultCleaner: false }
  }
)
```

* chore: use Reflect.ownKeys

* feat: add CLI options

* doc: add extend param to cli help

* refactor: extract selectExtendedTypes

* feat: only overwrite null extended results

* feat: add allowMultiple extraction option

* feat: accept extendList CLI args

* feat: allow attribute selectors in extends on CLI

* test: update extend tests

* fix: don't invoke cleaner for custom types

* feat: always return array if allowMultiple

* test: add test for array of single result

* refactor: extract extractHtml

* refactor: destructure allowMultiple

* fix: wrap multiple matches in $ for cheerio shim

* fix: find extended types before any other munging

* feat: absolutize all links

* fix: clean content more directly

* doc: Update CLI docs in README

* chore: update dist

* doc: Document extend in custom extractor README
5 years ago
Matthew Watkins 6e66887048 docs: add content formats to README.md (#318) 5 years ago
Adam Pash ffb25f34d7
docs: add usage gif (#308) 5 years ago
Madison Kanna b3fa18b6d9 docs: delete extra semicolon (#266) 5 years ago
Adam Pash 02476f4336
docs: add instructions for cli to README (#251) 5 years ago
Keith Mancuso 44edcda53f docs: added gitter badge (#249) 5 years ago
Paul Ford cfd9b59345
docs: add custom parsers to README
Added paragraph about custom parsers to README with links to relevant code and documentation.
5 years ago
Adam Pash d0726a2d32
chor: remove appveyor yml and badge (#247) 5 years ago
greenkeeper[bot] 7bdbbc8ed8 deps: update dependencies to enable Greenkeeper 🌴 (#243) 5 years ago
Adam Pash e38aff9c17
docs: add npm install instructions (#240) 5 years ago
Gina Trapani dc3dff6584 docs: add hero to README (#239) 5 years ago
Adam Pash c6f42c1278
docs: cleanup and update docs (#238) 5 years ago
Adam Pash 92de5ce4ed
docs: remove contributors (github already has this covered) (#237) 5 years ago
George Haddad 2845a1bb7e docs: add gitter room text and link (#235) 5 years ago
George Haddad 380196b709 docs: change text to include AMP and Reader (#236) 5 years ago
George Haddad 33bf5882b9
docs: add mit license badge (#234) 5 years ago
Toufic Mouallem 0668f5d75b docs: add instructions for browser usage to parse current page (#231) 5 years ago
Ralph Jbeily 199fe70b03 Docs contributors (#227)
* Add @george-haddad as a contributor

* Add @toufic-m as a contributor

* Add @WajeehZantout as a contributor

* Add @e55o as a contributor

* Add @JadTermsani as a contributor

* Add @RalphJbeily as a contributor

* Add @alexiakl as a contributor

* docs: fix Alexi and George profiles

* docs: update README.md

* docs: update contributors table

* docs: fix image size and contributors per line

* docs: add license badge
5 years ago
Ralph Jbeily 9756e6ee67 docs: update mercury parser installation (#228)
* docs: update mercury parser installation

* docs: fix import for example source code
5 years ago
Marc Esso 5ad02b6f28
docs: add license files (#217)
* docs: add license files

* docs: license sentence in readme

* docs: change contributing section sentence in readme.md

* docs: small grammar mistake in README.md
5 years ago
Ralph Jbeily ca44ce3dd1
docs: add install build and test guide (#215)
* docs: add install build and test guide

* docs: remove install build and test guides

* docs: add installation guide
5 years ago
Adam Pash e325d860fd Feat: improving ci (#16)
This commit also swaps in yarn for npm and tweaks circle ci a bit.

* appveyor.yml first go

* changing node

* ps

* narrow it down

* trying this

* fix airbnb module

* trying with yarn

* logging

* hybrid?

* trying yarn w/circle

* bump workers?

* build off?

* updating script

* tweaking script for appveyor

* bumping maxworkers

* cleaning up

* build step?

* yarn it

* added appveyor badge
8 years ago
Adam Pash 41c3454590 fix: circle test passing badge 8 years ago
Adam Pash 4c9910384a Feat: adding circle ci (#15)
* added circle.yml config

* set maxworkers in circle

* trying diff node versions

* multiple node

* pre nvm install

* testing parallel

* added badge to readme

* clean up circle.yml
8 years ago
Adam Pash 90501ec3b5 fix: increased avatar size 8 years ago
Adam Pash efd8ebbc69 Add @mutewinter as a contributor 8 years ago
Adam Pash 227bd6a36e Add @droob as a contributor 8 years ago
Adam Pash 9897d9bee8 Add @spiffytoy as a contributor 8 years ago
Adam Pash 615f142c5e Update @adampash as a contributor 8 years ago
Adam Pash 659301b4ab Add @adampash as a contributor 8 years ago
Adam Pash 8f42e119e8 feat: generator for custom parsers and some documentation
Squashed commit of the following:

commit deaf9e60d031d9ee06e74b8c0895495b187032a5
Author: Adam Pash <adam.pash@gmail.com>
Date:   Tue Sep 20 10:31:09 2016 -0400

    chore: README for custom parsers

commit a8e8ad633e0d1576a52dbc90ce31b98fb2ec21ee
Author: Adam Pash <adam.pash@gmail.com>
Date:   Mon Sep 19 23:36:09 2016 -0400

    draft of readme

commit 4f0f463f821465c282ce006378e5d55f8f41df5f
Author: Adam Pash <adam.pash@gmail.com>
Date:   Mon Sep 19 17:56:34 2016 -0400

    custom extractor used to build basic parser for theatlantic

commit c5562a3cede41f56c4e723dcfa1181b49dcaae4d
Author: Adam Pash <adam.pash@gmail.com>
Date:   Mon Sep 19 17:20:13 2016 -0400

    pre-commit to test custom parser generator

commit 7d50d5b7ab780b79fae38afcb87a7d1da5d139b2
Author: Adam Pash <adam.pash@gmail.com>
Date:   Mon Sep 19 17:19:55 2016 -0400

    feat: added nytimes parser

commit 58b8d83a56927177984ddfdf70830bc4f328f200
Author: Adam Pash <adam.pash@gmail.com>
Date:   Mon Sep 19 17:17:28 2016 -0400

    feat: can do fuzzy search or go straight to file

commit c99add753723a8e2ac64d51d7379ac8e23125526
Author: Adam Pash <adam.pash@gmail.com>
Date:   Mon Sep 19 10:52:26 2016 -0400

    refactored export for custom extractors for easier renames

commit 22563413669651bb497f1bb2a92085b71f2ae324
Author: Adam Pash <adam.pash@gmail.com>
Date:   Fri Sep 16 17:36:13 2016 -0400

    feat: custom extractor generation in place

commit 2285a29908a7f82a5de3c81f6b2b902ddec9bdaa
Author: Adam Pash <adam.pash@gmail.com>
Date:   Fri Sep 16 16:42:20 2016 -0400

    good progress
8 years ago
Adam Pash b4fbc5b581 chore: barebones readme 8 years ago