Name | shopee-affiliate-scraper JSON |
Version |
0.1.0
JSON |
| download |
home_page | None |
Summary | None |
upload_time | 2024-05-09 17:48:57 |
maintainer | None |
docs_url | None |
author | Marcuth |
requires_python | <4.0,>=3.12 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Shopee Affiliate - Scraper Tool
## Quickstart
### Creating Affiliate URL:
```py
from shopee_affiliate import ShopeeAffiliate
import json
def get_shopee_cookies() -> list[dict]:
with open("shopee.com.br.cookies.json", "r") as file:
cookies = json.load(file)
return cookies
def main() -> None:
cookies = get_shopee_cookies()
shopee_affiliate = ShopeeAffiliate(
cookies = cookies,
headless = False
)
affiliate_urls = shopee_affiliate.create_affiliate_urls([
"https://shopee.com.br/Anel-A%C3%A7o-Inoxidavel-Titanium-Ultra-Resistente-Elegante-Moderno-Tit%C3%A2nio-i.216863756.19571410921?sp_atk=32011a47-12e1-4519-930f-e1babe0029d4&xptdk=32011a47-12e1-4519-930f-e1babe0029d4",
"https://shopee.com.br/8MM-De-Largura-Novo-Anel-De-A%C3%A7o-Tit%C3%A2nio-Colorido-Para-Homens-Acess%C3%B3rios-De-J%C3%B3ias-Inoxid%C3%A1vel-Fashionable-i.1006215031.20986808207?sp_atk=94900ec4-a80b-4dc4-9780-cb7ac0edef9f&xptdk=94900ec4-a80b-4dc4-9780-cb7ac0edef9f",
"https://shopee.com.br/Anel-Masculino-A%C3%A7o-Negro-Preto-Inoxid%C3%A1vel-Motoqueiro-Moderno-i.331420767.21899047159?sp_atk=f6efd325-ccc4-42e3-a590-14d425ebb09a&xptdk=f6efd325-ccc4-42e3-a590-14d425ebb09a",
"https://shopee.com.br/8MM-Moda-Homem-E-Mulher-Simples-Anel-Duplo-Biselado-Polido-Azul-Ouro-Tit%C3%A2nio-De-A%C3%A7o-i.397469095.22226995990?sp_atk=57420437-3fa9-4c98-af02-aafb2556e7f5&xptdk=57420437-3fa9-4c98-af02-aafb2556e7f5",
"https://shopee.com.br/An%C3%A9is-De-A%C3%A7o-Tit%C3%A2nio-Para-Mulheres-E-Homens-i.1006215031.23387604145?sp_atk=6929b0ff-53ee-4099-a3a6-891c948817cf&xptdk=6929b0ff-53ee-4099-a3a6-891c948817cf"
])
print(affiliate_urls)
if __name__ == "__main__":
main()
```
Raw data
{
"_id": null,
"home_page": null,
"name": "shopee-affiliate-scraper",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.12",
"maintainer_email": null,
"keywords": null,
"author": "Marcuth",
"author_email": "example@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/36/52/d8af07760a533b7af0e591ed790599c8101a6ab9ab80b90fb9ec506cc914/shopee_affiliate_scraper-0.1.0.tar.gz",
"platform": null,
"description": "# Shopee Affiliate - Scraper Tool\n\n## Quickstart\n\n### Creating Affiliate URL:\n\n```py\nfrom shopee_affiliate import ShopeeAffiliate\nimport json\n\ndef get_shopee_cookies() -> list[dict]:\n with open(\"shopee.com.br.cookies.json\", \"r\") as file:\n cookies = json.load(file)\n return cookies\n\ndef main() -> None:\n cookies = get_shopee_cookies()\n\n shopee_affiliate = ShopeeAffiliate(\n cookies = cookies,\n headless = False\n )\n\n affiliate_urls = shopee_affiliate.create_affiliate_urls([\n \"https://shopee.com.br/Anel-A%C3%A7o-Inoxidavel-Titanium-Ultra-Resistente-Elegante-Moderno-Tit%C3%A2nio-i.216863756.19571410921?sp_atk=32011a47-12e1-4519-930f-e1babe0029d4&xptdk=32011a47-12e1-4519-930f-e1babe0029d4\",\n \"https://shopee.com.br/8MM-De-Largura-Novo-Anel-De-A%C3%A7o-Tit%C3%A2nio-Colorido-Para-Homens-Acess%C3%B3rios-De-J%C3%B3ias-Inoxid%C3%A1vel-Fashionable-i.1006215031.20986808207?sp_atk=94900ec4-a80b-4dc4-9780-cb7ac0edef9f&xptdk=94900ec4-a80b-4dc4-9780-cb7ac0edef9f\",\n \"https://shopee.com.br/Anel-Masculino-A%C3%A7o-Negro-Preto-Inoxid%C3%A1vel-Motoqueiro-Moderno-i.331420767.21899047159?sp_atk=f6efd325-ccc4-42e3-a590-14d425ebb09a&xptdk=f6efd325-ccc4-42e3-a590-14d425ebb09a\",\n \"https://shopee.com.br/8MM-Moda-Homem-E-Mulher-Simples-Anel-Duplo-Biselado-Polido-Azul-Ouro-Tit%C3%A2nio-De-A%C3%A7o-i.397469095.22226995990?sp_atk=57420437-3fa9-4c98-af02-aafb2556e7f5&xptdk=57420437-3fa9-4c98-af02-aafb2556e7f5\",\n \"https://shopee.com.br/An%C3%A9is-De-A%C3%A7o-Tit%C3%A2nio-Para-Mulheres-E-Homens-i.1006215031.23387604145?sp_atk=6929b0ff-53ee-4099-a3a6-891c948817cf&xptdk=6929b0ff-53ee-4099-a3a6-891c948817cf\"\n ])\n\n print(affiliate_urls)\n\nif __name__ == \"__main__\":\n main()\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": null,
"version": "0.1.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3652d8af07760a533b7af0e591ed790599c8101a6ab9ab80b90fb9ec506cc914",
"md5": "00c85f880bd9aba11197efc342f8c4ed",
"sha256": "aa58a6e5e5950a0e74157a12ecfc8e2882b8dea022e35d55540f0e20969d30f1"
},
"downloads": -1,
"filename": "shopee_affiliate_scraper-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "00c85f880bd9aba11197efc342f8c4ed",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.12",
"size": 2707,
"upload_time": "2024-05-09T17:48:57",
"upload_time_iso_8601": "2024-05-09T17:48:57.997708Z",
"url": "https://files.pythonhosted.org/packages/36/52/d8af07760a533b7af0e591ed790599c8101a6ab9ab80b90fb9ec506cc914/shopee_affiliate_scraper-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-09 17:48:57",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "shopee-affiliate-scraper"
}