Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

python-google-shopping

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

python-google-shopping

Python client for Google Shopping API

  • 0.1
  • PyPI
  • Socket score

Maintainers
1

Python Google Shopping for Human

Python client for Google Content API v2

Installation

.. code-block:: bash

pip install python-google-shopping

Features

  • Handles OAuth2 sanely through ENV variables
  • Handles pagination with iterators
  • Pads and adds checksum to GTIN of products automatically
  • Works well with Django and other frameworks

Usage

Basic

.. code-block:: bash

export GOOGLE_SHOPPING_CLIENT_ID=my_client_id export GOOGLE_SHOPPING_CLIENT_SECRET=my_client_secret export GOOGLE_SHOPPING_REFRESH_TOKEN=my_refresh_token

.. code-block:: python

from google_shopping import Merchant merchant_id = '536476575676' merchant = Merchant(merchant_id, country_code='AU')

Get product resource

product_resource = merchant.products.get(1234)

Get all products

products = list(merchant.products.list())

Iterate through products (generator)

for product in merchant.products.list(): print product.title

Delete product resource

product = Product.objects.order_by('?').first() merchant.products.delete(product.id)

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc