New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support chrome web store #505

Closed
wants to merge 2 commits into
base: master
from

Conversation

Projects
None yet
2 participants
@sanemat
Contributor

sanemat commented Aug 9, 2015

  • Version, Downloads, Price, Rating and Rating Count
    for chrome app, chrome extension and chrome theme.
  • Google does not provide a public API for chrome web store.
  • Use chrome-web-store-item-property.
    • Gather meta information from chrome web store.
Support chrome web store
* Version, Downloads, Price, Rating and Rating Count
  for chrome app, chrome extension and chrome theme.
* Google does not provide a public API for chrome web store.
* Use `chrome-web-store-item-property`.
    * Gather meta information from chrome web store.
@sanemat

This comment has been minimized.

Show comment
Hide comment
@sanemat

sanemat Aug 9, 2015

Contributor

I need your advice :)

About scraping

Google does not provide a public API for chrome web store.
I heard that usually people scrape the detail page.
http://stackoverflow.com/questions/31830249/how-to-get-chrome-extensions-meta-information-e-g-version-name-from-chrome

Name

url

Which is better, chrome-web-store or chromewebstore?

label

Which is better, chrome-web-store, chrome web store or chromeWebStore?

Contributor

sanemat commented Aug 9, 2015

I need your advice :)

About scraping

Google does not provide a public API for chrome web store.
I heard that usually people scrape the detail page.
http://stackoverflow.com/questions/31830249/how-to-get-chrome-extensions-meta-information-e-g-version-name-from-chrome

Name

url

Which is better, chrome-web-store or chromewebstore?

label

Which is better, chrome-web-store, chrome web store or chromeWebStore?

@espadrine

This comment has been minimized.

Show comment
Hide comment
@espadrine

espadrine Aug 13, 2015

Member

Thanks for the contribution!

I'm uneasy about the brittleness of HTML scraping. Do you know for how long in the past this code has worked, for instance by using the wayback machine? If it always has (if the 2010 version could be scraped by your module), that worry goes away. Otherwise, I'd like you to contact Google and ask for a public API access first. Scraping is always the last option (especially here, considering it adds a large-ish dependency tree).

chrome-web-store is better in the URL, chrome web store in the label.

Member

espadrine commented Aug 13, 2015

Thanks for the contribution!

I'm uneasy about the brittleness of HTML scraping. Do you know for how long in the past this code has worked, for instance by using the wayback machine? If it always has (if the 2010 version could be scraped by your module), that worry goes away. Otherwise, I'd like you to contact Google and ask for a public API access first. Scraping is always the last option (especially here, considering it adds a large-ish dependency tree).

chrome-web-store is better in the URL, chrome web store in the label.

@sanemat

This comment has been minimized.

Show comment
Hide comment
@sanemat

sanemat Aug 13, 2015

Contributor

Thank you for your response!

What you're saying is reasonable.
I asked a question about a public api on chromium-apps group.

chrome-web-store-item-property can parse the detail page for gmail on 2013-07-02, but this does not guarantee it can parse tomorrow.

https://web.archive.org/web/20130702005956/https://chrome.google.com/webstore/detail/gmail/pjkljhegncpnkpknbcohdijeoejaedia
{
    url: 'https://chrome.google.com/webstore/detail/gmail/pjkljhegncpnkpknbcohdijeoejaedia',
    image: 'https://lh6.googleusercontent.com/DLaZDFm1ocpFFLiiDMD0uBp1w7vgPRt8xx211wnZXFUOloEBuE-GC9Qw9hVPn5QQtVZjTHv0Vd8=s128-h128-e365',
    version: '7',
    price: '$0',
    priceCurrency: 'USD',
    interactionCount: { UserDownloads: 10 },
    ratingValue: 4.611226400769348,
    id: 'pjkljhegncpnkpknbcohdijeoejaedia'
},

Use chrome-web-store in the URL, chrome web store in the label. d22921b

Contributor

sanemat commented Aug 13, 2015

Thank you for your response!

What you're saying is reasonable.
I asked a question about a public api on chromium-apps group.

chrome-web-store-item-property can parse the detail page for gmail on 2013-07-02, but this does not guarantee it can parse tomorrow.

https://web.archive.org/web/20130702005956/https://chrome.google.com/webstore/detail/gmail/pjkljhegncpnkpknbcohdijeoejaedia
{
    url: 'https://chrome.google.com/webstore/detail/gmail/pjkljhegncpnkpknbcohdijeoejaedia',
    image: 'https://lh6.googleusercontent.com/DLaZDFm1ocpFFLiiDMD0uBp1w7vgPRt8xx211wnZXFUOloEBuE-GC9Qw9hVPn5QQtVZjTHv0Vd8=s128-h128-e365',
    version: '7',
    price: '$0',
    priceCurrency: 'USD',
    interactionCount: { UserDownloads: 10 },
    ratingValue: 4.611226400769348,
    id: 'pjkljhegncpnkpknbcohdijeoejaedia'
},

Use chrome-web-store in the URL, chrome web store in the label. d22921b

@espadrine

This comment has been minimized.

Show comment
Hide comment
@espadrine

espadrine Aug 13, 2015

Member

Thanks! Keep me posted on what comes out of the chromium-apps discussion!

Member

espadrine commented Aug 13, 2015

Thanks! Keep me posted on what comes out of the chromium-apps discussion!

@sanemat

This comment has been minimized.

Show comment
Hide comment
@sanemat

sanemat Nov 20, 2015

Contributor

This has no future.

Contributor

sanemat commented Nov 20, 2015

This has no future.

@sanemat sanemat closed this Nov 20, 2015

@sanemat sanemat deleted the sanemat:feat/chrome-web-store branch Nov 20, 2015

sanemat added a commit to sanemat/shields that referenced this pull request Apr 5, 2016

Add chrome extension support
* Version, Downloads, Price, Rating and Rating Count for chrome app,
chrome extension and chrome theme.
* Google does not provide a public API for chrome web store.
* Use `chrome-web-store-item-property`.
    * Gather meta information from chrome web store.

see badges#505, badges#636
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment