Skip to main content

A webscraping package for COMC.com

Project description

COMCscraper

Jared Randall

This is package has been built to scrape the website, Check Out My Cards (COMC). COMC is an online marketplace for buying and selling sports cards, trading cards, and other collectibles.

This package is strictly built for end users who wish to scrape data for personal use.

Please be considerate of COMC servers when using COMCscraper.

Installation


You can install the package by entering the following command in terminal:

pip install COMCscraper

Then import the module using this function:

import COMCscraper as comc

User-End Functions


getSportsCards(sport, sort, attributes)

Returns a dataframe containing 100 results based on the sport, sort and attributes provided.

  • Card: Full Title of the card as listed on COMC (E.g. 2015-16 Upper Deck - UD Canvas #C270)
  • Year: Year or Season in which card was produced (E.g. 2015-16)
  • Player: Name of the Player as listed on COMC (E.g. Program of Excellence - Connor McDavid)
  • Player (Clean): Name of the player striped of other dimensions (E.g. Connor McDavid)
  • Lowest Price: The lowest price the card is being sold for on COMC (E.g. 2230.28)
  • Season: Different from Year dimension to more closly align with COMC's filtering (E.g. 2015)
  • Serial #/: If applicable, shows the number of cards produced for cards that are serial numbered (E.g. 10)
  • Set: Official name of set including year and brand (E.g. 2015-16 Upper Deck)
  • Brand: Producer or product line of the set (E.g. Upper Deck)
  • Card #: Card Number within Set; either Base or Subset (E.g. C270)
  • Subset: Name of subset; value of 'Base' if part of main set (E.g. UD Canvas)
  • Attributes: If attributes value is passed, then column contains attributes used in search (E.g. RC)

Example:

getSportsCards("hockey", "sl", "RC")

This example would search lowest priced ('sl') hockey ('hockey') cards featuring rookies ('RC').


getTradingCards("POKER", "", "")

Returns a dataframe containing 100 results based on the trading card, sort and attributes provided.

  • Card: Full Title of the card as listed on COMC (E.g. 2015-16 Upper Deck - UD Canvas #C270)
  • Year: Year or Season in which card was produced (E.g. 2015-16)
  • Title: Name of the Poker player or character as listed on COMC (E.g. Program of Excellence - Connor McDavid)
  • Title (Clean): Name of the player or character striped of other dimensions (E.g. Connor McDavid)
  • Lowest Price: The lowest price the card is being sold for on COMC (E.g. 2230.28)
  • Season: Different from Year dimension to more closly align with COMC's filtering (E.g. 2015)
  • Serial #/: If applicable, shows the number of cards produced for cards that are serial numbered (E.g. 10)
  • Set: Official name of set including year and brand (E.g. 2015-16 Upper Deck)
  • Brand: Producer or product line of the set (E.g. Upper Deck)
  • Card #: Card Number within Set; either Base or Subset (E.g. C270)
  • Subset: Name of subset; value of 'Base' if part of main set (E.g. UD Canvas)
  • Attributes: If attributes value is passed, then column contains attributes used in search (E.g. RC)

Example:

getTradingCards("Star Wars", "sd", "AUTO")

This example would search autographed ('AUTO') Star Wards ('Star Wars') cards with the largest discount ('sd').

Comments, Questions, or Concerns.


If you should have any comments, questions or concerns about COMCscraper, please do not hesitate to email me at jaredtroyrandall@gmail.com.

If you have any requests, please feel free to send them my way as well :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

COMCscraper-0.0.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

COMCscraper-0.0.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file COMCscraper-0.0.2.tar.gz.

File metadata

  • Download URL: COMCscraper-0.0.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.5.0 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for COMCscraper-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9d9e868855a78ad21ec5e67d0239aaba28edf453765640c80b4642963a4593cf
MD5 ca104aba83bf7e0296557be0b36c7409
BLAKE2b-256 c69c9e65c249d03ec583b7497395c9e77f976e541d9ec823806de9bcfd11d3b4

See more details on using hashes here.

File details

Details for the file COMCscraper-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: COMCscraper-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.5.0 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for COMCscraper-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8c3596d63b54e19b8114e6fdcc463df15d10b753b26ce999711806bd4f456e89
MD5 9c836a424979cf73cce28dc2d3e98661
BLAKE2b-256 36f0f4437c373da8c7030a56e14995da4d39d0cea9681e0ea5d709dccffb24ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page