wallabag/tests/Wallabag/ImportBundle/fixtures/readability.json
Jeremy Benoist e668a8124c
Allow other fields to be send using API
Entry API can now have these new fields:
- content
- language
- preview_picture
- published_at

Re-use the ContentProxy to be able to do the same using the web UI (in the future).
htmLawed is used to clean stuff from content, I hope it’ll be enough to avoid security breach.

Lower content validation when we want to update an entry with content already defined. Before, language & content_type were required. If there weren’t provided, we re-fetched the content using graby. I think these fields aren’t required for an entry to be created. So I removed them.
Which means some import from the v1 export won’t be re-fetched since they provide content, url & title.

Also, remove liberation link from Readability import to avoid overlaping import (from wallabag v1, which had the same link)
2017-05-31 13:59:45 +02:00

169 lines
7.5 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"bookmarks": [
{
"article__excerpt": "When Twitter started it had so much promise to change the way we communicate. But now it has been ruined by the amount of garbage and hate we have to wade through. It’s like that polluted…",
"favorite": false,
"date_archived": null,
"article__url": "https://venngage.com/blog/hashtags-are-worthless/",
"date_added": "2016-08-25T12:05:00",
"date_favorited": null,
"article__title": "We Looked At 167,943 Tweets & Found Out Hashtags Are Worthless",
"archive": false
},
{
"article__title": "No title found",
"article__url": "http://news.nationalgeographic.com/2016/02/160211-albatrosses-mothers-babies-animals-science/&sf20739758=1",
"archive": false,
"date_added": "2016-09-08T11:55:58+0200",
"favorite": true
},
{
"archive": 0,
"date_added": "2016-09-08T11:55:58+0200",
"favorite": 0,
"article__title": "Échecs",
"article__url": "https://fr.wikipedia.org/wiki/Échecs"
},
{
"archive": 0,
"date_added": "2016-09-08T11:55:58+0200",
"favorite": 0,
"article__title": "90% des dossiers médicaux des Coréens du sud vendus à des entreprises privées - ZATAZ",
"article__url": "http://www.zataz.com/90-des-dossiers-medicaux-des-coreens-du-sud-vendus-a-des-entreprises-privees/"
},
{
"archive": 0,
"date_added": "2016-09-08T11:55:58+0200",
"favorite": 0,
"article__title": "Mass Surveillance As Art",
"article__url": "https://www.nationaljournal.com/s/73311/mass-surveillance-art"
},
{
"archive": 0,
"date_added": "2016-09-08T11:55:58+0200",
"favorite": 0,
"article__title": "What David Cameron did to the pig, his party is now doing to the country",
"article__url": "http://www.newstatesman.com/2015/09/what-david-cameron-did-pig-his-party-now-doing-country"
},
{
"archive": 1,
"date_added": "2016-09-08T11:55:58+0200",
"favorite": 0,
"article__title": "CLICK HERE to support 2016 CES Winner, Revolutionary Auto-Tracking Robot",
"article__url": "https://www.indiegogo.com/projects/2016-ces-winner-revolutionary-auto-tracking-robot"
},
{
"archive": 0,
"date_added": "2016-09-08T11:55:58+0200",
"favorite": 1,
"article__title": "No title found",
"article__url": "http://carnetdevol.shost.ca/wordpress/aide-memoire-sur-les-commandes-associees-a-systemd/"
},
{
"archive": 1,
"date_added": "2016-09-08T11:55:58+0200",
"favorite": 0,
"article__title": "Présentation d'Arduino - Tuto Arduino - Le blog d'Eskimon",
"article__url": "http://eskimon.fr/73-arduino-101-presentation"
},
{
"archive": 1,
"date_added": "2016-09-08T11:55:58+0200",
"favorite": 0,
"article__title": "Lenovo ThinkPad X1 Carbon Ultrabook Review",
"article__url": "http://www.notebookcheck.net/Lenovo-ThinkPad-X1-Carbon-Ultrabook-Review.138033.0.html"
},
{
"archive": 0,
"date_added": "2016-09-08T11:55:58+0200",
"favorite": 0,
"article__title": "Visitons le Château de Landsberg !",
"article__url": "http://autour-du-mont-sainte-odile.overblog.com/2016/01/visitons-le-chateau-de-landsberg.html"
},
{
"archive": 1,
"date_added": "2016-09-08T11:55:58+0200",
"favorite": 0,
"article__title": "Contrer les stéréotypes par les livres : “C'est dès l'enfance qu'ils se construisent”",
"article__url": "https://www.actualitte.com/article/monde-edition/contrer-les-stereotypes-par-les-livres-c-est-des-l-enfance-qu-ils-se-construisent/64058"
},
{
"archive": 1,
"date_added": "2016-09-08T11:55:58+0200",
"favorite": 0,
"article__title": "[ROM][6.0.1][Layers][N5] TipsyOS official builds {UBER TCs}",
"article__url": "http://forum.xda-developers.com/google-nexus-5/development/rom-tipsyos-official-builds-uber-tcs-t3325989"
},
{
"archive": 0,
"date_added": "2016-09-08T11:55:58+0200",
"favorite": 0,
"article__title": "Top 15 Podcasts All Web Developers Should Follow - Envato Tuts+ Code Article",
"article__url": "http://code.tutsplus.com/articles/top-15-podcasts-all-web-developers-should-follow--net-14461"
},
{
"archive": 1,
"date_added": "2016-09-08T11:55:58+0200",
"favorite": 0,
"article__title": "University of Mississippi",
"article__url": "http://olemiss.edu"
},
{
"archive": 1,
"date_added": "2016-09-08T11:55:58+0200",
"favorite": 0,
"article__title": "FinnChristiansen.de Jetzt Dank Lets Encrypt Per HTTPS Erreichbar",
"article__url": "https://www.finnchristiansen.de/2015/12/06/finnchristiansen-de-jetzt-dank-lets-encrypt-per-https-erreichbar/"
},
{
"archive": 1,
"date_added": "2016-09-08T11:55:58+0200",
"favorite": 0,
"article__title": "Le développeur et l'ingénierie logicielle",
"article__url": "http://wemucs.com/le-developpeur-et-lingenierie-logicielle/"
},
{
"archive": 1,
"date_added": "2016-09-08T11:55:58+0200",
"favorite": 0,
"article__title": "The Role of Methylation in Gene Expression",
"article__url": "http://www.nature.com/scitable/topicpage/the-role-of-methylation-in-gene-expression-1070"
},
{
"archive": 1,
"date_added": "2016-09-08T11:55:58+0200",
"favorite": 0,
"article__title": "E-Mail-Adresse kostenlos, FreeMail, De-Mail & Nachrichten",
"article__url": "http://web.de"
},
{
"archive": 1,
"date_added": "2016-09-08T11:55:58+0200",
"favorite": 0,
"article__title": "OpenSSH Server on Arch Linux | DominicM test",
"article__url": "http://dominicm.com/openssh-server-arch-linux/"
},
{
"archive": 1,
"date_added": "2016-09-08T11:55:58+0200",
"favorite": 0,
"article__title": "Site Moved | Site Help",
"article__url": "http://g1.com/help/sitemoved.asp"
},
{
"archive": 1,
"date_added": "2016-09-08T11:55:58+0200",
"favorite": 0,
"article__title": "#Maroc : le stylo anti-pédophiles EAGLE dAMESYS est moins bien configuré que les faux-lowers Twitter du roi Mohammed VI",
"article__url": "https://reflets.info/maroc-le-stylo-anti-pedophiles-eagle-damesys-est-moins-bien-configure-que-les-faux-lowers-twitter-du-roi-mohammed-vi/"
},
{
"archive": 1,
"date_added": "2016-09-08T11:55:58+0200",
"favorite": 0,
"article__title": "Simple Cloud Infrastructure for Developers",
"article__url": "https://www.digitalocean.com/"
}
],
"recommendations": []
}