Comments (2)
FWIW, here's the response from HTTP (and not the invalid HTTPS):
$ curl -i -XPOST -H "content-type: application/json" -d '{"urls": ["http://www.cnn.com"]}' http://localhost:7001 | JSON
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
cache-control: no-cache
content-length: 560
Date: Thu, 30 Jun 2016 20:02:00 GMT
Connection: keep-alive
{
"error": "",
"urls": {
"http://www.cnn.com": {
"description": "View the latest news and breaking news today for U.S., world, weather, entertainment, politics and health at CNN.com.",
"icon_url": "http://i.cdn.turner.com/cnn/.e/img/3.0/global/misc/apple-touch-icon.png",
"image_url": "http://i.cdn.turner.com/cnn/.e1mo/img/4.0/logos/menu_politics.png",
"title": "CNN - Breaking News, Latest News and Videos",
"type": "website",
"url": "http://www.cnn.com",
"original_url": "http://www.cnn.com",
"provider_url": "http://www.cnn.com",
"favicon_url": "http://www.cnn.com/favicon.ico"
}
}
}
from page-metadata-parser.
The undefined
issue seems to be resolved in latest master:
$ http POST http://localhost:7001/v1/metadata urls:='["https://www.cnn.com"]' -j -v
POST /v1/metadata HTTP/1.1
Accept: application/json
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 33
Content-Type: application/json; charset=utf-8
Host: localhost:7001
User-Agent: HTTPie/0.9.1
{
"urls": [
"https://www.cnn.com"
]
}
HTTP/1.1 200 OK
Connection: keep-alive
Content-Length: 22
Content-Type: application/json; charset=utf-8
Date: Thu, 11 Aug 2016 18:08:43 GMT
ETag: W/"16-urTtGfwwfQX5N25qpNbXOg"
X-Powered-By: Express
{
"error": "",
"urls": {}
}
from page-metadata-parser.
Related Issues (20)
- Remove coveralls access token
- Update to CircleCI v2 API
- Possible documentation issue HOT 1
- Wiki changes
- CODE_OF_CONDUCT.md file missing
- Typescript types support HOT 1
- defaultValue for favicon should be "/favicon.ico" rather than "favicon.ico"
- Add publication date support for articles pages
- Suspicious www URL parsing in getProvider()
- Add highres_icon_url rules HOT 2
- Find the largest high res icon HOT 1
- Update README.md HOT 1
- Custom formatting for provider ? HOT 1
- Aliases for rules? HOT 1
- Remove Fathom 1.0 Dependency
- Explicitly flag whether an icon was found
- Usage in browser instructions HOT 1
- Move special post processing cases to processors
- Update description and preview image rules
- Icon scoring lacks support for vector icons HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from page-metadata-parser.