artoo icon indicating copy to clipboard operation
artoo copied to clipboard

Roadmap and compatibility with chrome extension

Open hubyhuby opened this issue 4 years ago • 3 comments

Hi Artoo, This project is really cool.

But unfortunately with recent website security changes , the artoo library seems to not be working on most of the popular websites. I have tried to use the chrome extension without luck and see that there is no commits since 2018. Except for a new branch gh-pages ...

Hence my questions :

  • Is there a plan to make chrome extension work again ? Since it seems vitale to make this project working

  • Is there a roadmap / milestones you have in mind to get to a 1.0 eventually ?

hubyhuby avatar Nov 15 '19 15:11 hubyhuby

Hello @hubyhuby,

The chrome extension is indeed quite old now. But you can use other chrome extensions to basically do the same. The idea is just to shunt the Content Security Policy headers of the website, so something like this extension: https://chrome.google.com/webstore/detail/disable-content-security/ieelmcmcagommplceebfedjlakkhpden should work.

There is no precise roadmap. This tool has been working for years now and is still used by many. I occasionally fix some bugs and such but I have no precise features to add right now.

In the meantime, to work some other related use-cases more scale-oriented we started developing a CLI tool called minet that takes inspiration from artoo somehow (specifically the scraping DSL) and that will maybe, in the future, inject artoo into headless chrome contexts for complex tasks.

Yomguithereal avatar Nov 15 '19 15:11 Yomguithereal

I've updated the online docs to help people shunt CSP headers and I kinda hid the extension's documentation because it really is irrelevant at this point.

Yomguithereal avatar Nov 15 '19 16:11 Yomguithereal

Thanks @Yomguithereal , I am developing a chrome extension to scrape info while browsering the web. I managed easily to include jquery in my chrome extension, without getting any error messages on security. But I never succeed in using artoo ... I am unsure where to or if it is possible to include artoo.js in my chrome extension ... I have tried with artoo-latest.min.js I may give it another try later, but for now I guess jquery is the way to scrape data ...

I am tryed things like this downloading artoo from the website, but get troubles with the .js trying to DL jquery ....

:

{ "manifest_version": 2,

"name": " test 2",
"description": "A simple page-scraping extension for Chrome",
"version": "1.0",
"author": "bob",

"background": {
	"scripts": ["popup.js","artoo-latest.min.js"],
	"persistent": true
},

"permissions": [
    "tabs",
    "http://*/",
    "https://*/"
],
"browser_action": {
	"default_icon": "logo.png",
	"default_popup": "popup.html"
},
"content_scripts": [ {
	"matches": ["http://*.youtube.com/*", "https://*.youtube.com/*"],
	"js": ["artoo-latest.min.js"]
}]

}

hubyhuby avatar Nov 16 '19 10:11 hubyhuby