GithubHelp home page GithubHelp logo

Comments (4)

eythel avatar eythel commented on September 27, 2024 1

from instant-articles-builder.

eythel avatar eythel commented on September 27, 2024

Captura de Pantalla 2021-04-14 a la(s) 18 44 08

from instant-articles-builder.

pestevez avatar pestevez commented on September 27, 2024

Hi @eythel - is this happening on Windows or in another OS?

from instant-articles-builder.

pestevez avatar pestevez commented on September 27, 2024

I think I found the problem. You are missing the "Article" element. I made a few changes, and while not perfect (it is missing the article published date and is picking up the video in the header as an image), it should be a good starting point:

{
	"generator_name": "facebook-instant-articles-builder",
	"generator_version": "0.2.2",
	"rules": [{
		"class": "TextNodeRule"
	}, {
		"class": "GlobalRule",
		"selector": "html",
		"properties": {
			"article.title": {
				"attribute": "content",
				"selector": "h1",
				"type": "element"
			},
			"author.name": {
				"selector": ".jeg_meta_author a",
				"type": "string"
			},
			"image.url": {
				"attribute": "poster",
				"selector": "div.jeg_feature_video_wrapper video",
				"type": "string"
			},
			"article.body": {
				"attribute": "content",
				"selector": ".content-inner",
				"type": "element"
			},
			"article.canonical": {
				"attribute": "href",
				"selector": "link[rel=canonical]",
				"type": "string"
			}
		}
	}, {
		"class": "BlockquoteRule",
		"selector": "blockquote"
	}, {
		"class": "ParagraphRule",
		"selector": "p"
	}, {
		"class": "H2Rule",
		"selector": "h2"
	}, {
		"class": "H1Rule",
		"selector": "h1"
	}, {
		"class": "ListElementRule",
		"selector": "ol, ul"
	}, {
		"class": "ListItemRule",
		"selector": "li"
	}, {
		"class": "AnchorRule",
		"selector": "a",
		"properties": {
			"anchor.href": {
				"attribute": "href",
				"selector": "a",
				"type": "string"
			}
		}
	}, {
		"class": "ItalicRule",
		"selector": "i"
	}, {
		"class": "EmphasizedRule",
		"selector": "em"
	}, {
		"class": "BoldRule",
		"selector": "b, strong"
	}, {
		"class": "ImageRule",
		"selector": "img",
		"properties": {
			"image.url": {
				"attribute": "src",
				"selector": "img",
				"type": "string"
			},
			"image.caption": {
				"attribute": "src",
				"selector": "img",
				"type": "element"
			}
		}
	}, {
		"class": "IgnoreRule",
		"selector": "img.rimg_cn,div.jeg_post_tags"
	}]
}

I am closing the issue now, compatriota, but feel free to reopen this one if it does not work.

from instant-articles-builder.

Related Issues (20)

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.