Skip to content
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 Silverline #6

Open
salian opened this issue Oct 2, 2022 · 1 comment
Open

Support Silverline #6

salian opened this issue Oct 2, 2022 · 1 comment

Comments

@salian
Copy link
Owner

salian commented Oct 2, 2022

Add support for Silverline and other shopify-based stores

@d3vsuthar
Copy link
Contributor

This should be easy to do

import requests
import json

def get_products(url, page):
    res = requests.get(f"{url}/products.json?limit=250&page={page}")
    data = json.loads(res.text)
    return data['products']

get_products('https://www.silverlineelectronics.in/collections/the-raspberry-pi', page=1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants