問題タブ [google-shopping-api]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
1801 参照

python - スクリーン スクレイピング画像 (例: Firefox ページ情報 / Google 画像)

できれば、URL を指定して python (現在は urllib と BeautifulSoup を使用) を使用します。

たとえば、このページのメイン写真をスクレイピングしようとしています: http://www.marcjacobs.com/marc-jacobs/womens/bags-and-accessories/c3122001/the-single#?p=1&s=12

Firefox の [ツール] > [ページ情報] > [メディア] の下に、取得したい画像へのリンク ( http://imagesec.mj.ctscdn.com/image/336/504/6ace6aac-c049-4d7e- 9465-c19b5cd8e4ac.jpg )

相互に関連する 2 つの問題:

  1. ソースを表示すると、Firefox ツールから取得した画像パスが html ドキュメントに見つかりません... Firefox ページ情報を経由せずにこのパスを取得する方法はありますか? おそらく、Python および/または Javascript/JQuery のいずれかを介してですか?
  2. 製品の写真を「オレンジ」で取得しようとしていますが、ページがデフォルトで常に黒色をロードしていることに気付きました

実際の例はおそらく Google の「ショッピング」です。この製品の名前を入力して色を選択すると、検索結果に (まったく同じページから) 正しい色で画像が表示されます。

基本的に、主にショッピング サイトから色やスタイル/バリエーション固有の画像をスクレイピングできるようにしたいと考えています。

適切な色を選択するのはもっと複雑に思えます。その場合、私は今のところメインの製品画像だけを黒に落ち着かせます..

これまでのところ、img の高さタグに基づいて画像を選択しようとしましたが、高さ/幅のタグがない場合は寸法を読み取ろうとしましたが、もっと良い方法があるはずです。

0 投票する
1 に答える
711 参照

rest - カテゴリによる Google ショッピング REST API の制限

カテゴリ別に Google ショッピング リクエストを制限しようとしています (この場合、実際の映画/DVD/Blu-Ray のみを返したいと考えています)。

これが私が渡しているものです:

https://www.googleapis.com/shopping/search/v1/public/products?country=US&q=ターミネーター&key=MY_KEY

MY_KEY は、 https ://code.google.com/apis/console/#project:396093783634:access から取得したキーです。

返された結果を次のようにしたいと思います。

https:/ on.2,or.r_gc.r_pw.r_cp.r_qf.,cf.osb&fp=8fc3a267521f95b1&ion=1&biw=1920&bih=955

パラメータとして何を渡す必要がありますか?

0 投票する
0 に答える
125 参照

rest - Google ショッピング REST API: 誤った結果を回避するための戦略

この質問このフォーラムの投稿によると、検索をカテゴリでフィルタリングするときに Google 分類法を使用することはできません。

ショッピング API を使用してラップトップを検索していますが、ラップトップ以外の膨大な数の検索結果が表示されることに不満を感じています。これらの結果には、バッテリー、画面、メモリのアップグレード、ハード ドライブ、CPU、マザーボードなどが含まれます。

一般的にコンポーネントよりもラップトップ全体を優先する独創的なアイデアrestrictByやパラメータを持っている人はいますか?boostBy

0 投票する
1 に答える
672 参照

drupal-7 - Google ショッピング用の Ubercart XML フィード

現在、ビューを介して Google ショッピング用の Ubercart から製品フィードを作成しようとしています。Google やその他のスタック オーバーフローの質問で適切な回答が見つかりません。

誰もこれを以前にやったことがありますか?どうやってそれをしましたか?追加のモジュールが必要でしたか? はいの場合、どれですか?

使用モジュール: Drupal 7 Ubercart 7.x-3.1 Views 7.x-3.3

0 投票する
1 に答える
1124 参照

magento - GoogleShopping Magento エラー:

Magento 1.7.0.2 ショップに Mage_GoogleShopping モジュールをインストールして構成しました。商品を Google ショッピングに追加しようとすると、/var/log/system.log に次のエラーが表示されます。

この問題は Magento フォーラムで何度か報告されていますが、解決策は見つかりませんでした。

パーミッションに関しては間違いなく問題ありません。ファイルが存在しません。

0 投票する
1 に答える
281 参照

google-shopping-api - Google ショッピング アトム フィードと実際の G​​oogle ショッピング ウェブサイト データ

私は Google ショッピング API を使用して売り手のデータをアトム フィードとして取得していますが、Google アトム フィードには、同じ検索キーワードまたは ean コードを使用したときに、Google ショッピング Web サイトで表示できる実際のショップ数よりも少ないショップがある場合があります。

これは何が原因なのですか? ショップが製品データを Atom フィードに非表示にするオプションはありますか?!

0 投票する
1 に答える
752 参照

ruby - Google API for Shopping にアクセスする際の認証情報が無効です

google-api-client gem を使用してGoogle Search API for Shoppingにアクセスしようとしています。残念ながら、 Google APIs Consoleで access_token を作成しても認証できないようです。

これが私のコードです:

を表示response.dataすると、エラー メッセージが表示されます。

私は何を間違っていますか?

0 投票する
2 に答える
920 参照

php - GSC_Client and oAuth2 access

I'm beginning work on a PHP script that will run as a cron job and periodically update product listings via the Google Shopping API.

I downloaded the GSC Client library for PHP and am trying to work through the Google Shopping API documentation in order to get as far as getting a token. However it feels like there's a step missing somewhere in the docs regarding how to actually request a token once you've generated the URL.

Here's my code so far:

When I run the above from the commandline, I get:

https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=blah-blah-blah-etc-etc-etc...

I'm fairly surely initializing a CURL object shouldn't be necessary, but I can't figure out how I get from the generated URL to an actual response to parse.

If I visit the URL generated by generateAuthorizeUrl() I get a page with a button asking me to grant permission. If I do that, I do get a page that has a token on it which as far as I can tell is valid.

However, this is for a cron script that obviously won't be able to ask the user to click a button and confirm that they want to grant permission, so obviously I'm going off track somewhere.

Has anyone managed to get the GSC_Client to work with OAuth in an entirely automatic script? If so, what am I doing wrong here?

UPDATE: For this application, I've configured the API type as "Installed application", which appears to be the correct API type for this application. This means I provide the script with the shared secret and use https://localhost or urn:ietf:wg:oauth:2.0:oob as the URL.

UPDATE 2: I don't think the GSC client's support libraries support server-to-server scenarios. Further research has indicated that I need the Google APIs client library if I want to use the private key method of authentication.

This is the code I've managed to write so far:

When I run the above code I get something resembling the following in return:

I'm guessing this is a valid access token response.

However, I haven't figured out how to use the returned token with the GSC_Client library yet. While I know both these libraries originated from Google, I'm getting the distinct impression that they were developed by different teams who had little, if anything, to do with each other, and the end result is these libraries aren't cross-compatible. If anybody knows what to do here, I'd appreciate any advice you may have.

UPDATE 3

I've managed to use the oAuth library to actually pull data from Google, but it's from the Search API for shopping. I need to be doing manipulation of product listings with the Content API for shopping. There doesn't appear to be a class provided with the oAuth library for doing that, even in the contrib directory!

FYI, here's the code that does the search API request (minus the constants):

0 投票する
1 に答える
191 参照

javascript - Googleショッピングで一番売れている商品を手に入れよう

Google ショッピングで一番売れている商品を手に入れるためだけに、あらゆる場所を探しています。彼らのホームページに「今週の人気」というセクションがあることは知っています。私は本当にAPI経由でそれを取得したかったのですが、調査中に何も見つかりませんでした.

今週、API を介して Google ショッピングでトップセラー商品または人気商品を取得する方法はありますか?

ホームページのHTMLをスクレイピングすることも考えていますが、ホームページのコンテンツがAjaxで読み込まれているため、無理そうです。

あなたの助けは大歓迎です!

前もって感謝します!

0 投票する
3 に答える
439 参照

magento-1.7 - Magentoコミュニティ-Googleショッピングフィード

MagentoCommunity1.7.0.2のGoogleショッピングフィードについて質問があります

これを構築するために使用できる優れたプラグインはありますか?グーグルを通していくつかの調査をしましたが、私は良い反応を得ることができませんでした。予算が少ないので無料で素晴らしいでしょう:)

GoogleショッピングAPIを見たことがありますが、これはMagentoConnect専用です。

すべてのヒントをありがとう!