Python

Scrape Cryptocurrency Prices from Pancakeswap.finance with Python!



Utilize Pancakeswap Price Scraper to build a database of pairs and their price history, with possible use in your Python projects, whether it is AI, price monitoring, or arbitrage trading.

Build PancakeSwap Price Ticker series: (including custom tokens!)

10% commission kickback on Binance:

Github:

Similar Posts

8 thoughts on “Scrape Cryptocurrency Prices from Pancakeswap.finance with Python!
  1. EDIT: If someone is having the same problem with pancakeswap you just have to put a sleep(1) before the Keys.ENTER ( or before whatever the original method to enter is )

    Getting error on Pancakeswap. Working on other exchanges using the same front end though. From what I can tell is pancakeswap is not allowing Keys.ENTER to submit the currency.

    Traceback (most recent call last):

    File "C:Usersthe0nPycharmProjectsPancakeSwap-Price-Scraper-Tutorialmain.py", line 39, in <module>

    scraper.select_pair(currency1=currency1, currency2=currency2, reverse=reverse)

    File "C:Usersthe0nPycharmProjectsPancakeSwap-Price-Scraper-Tutorialscraper__init__.py", line 76, in select_pair

    self.currency_2_btn.click()

    File "C:Usersthe0nPycharmProjectsPancakeSwap-Price-Scraper-Tutorialvenvlibsite-packagesseleniumwebdriverremotewebelement.py", line 80, in click

    self._execute(Command.CLICK_ELEMENT)

    File "C:Usersthe0nPycharmProjectsPancakeSwap-Price-Scraper-Tutorialvenvlibsite-packagesseleniumwebdriverremotewebelement.py", line 633, in _execute

    return self._parent.execute(command, params)

    File "C:Usersthe0nPycharmProjectsPancakeSwap-Price-Scraper-Tutorialvenvlibsite-packagesseleniumwebdriverremotewebdriver.py", line 321, in execute

    self.error_handler.check_response(response)

    File "C:Usersthe0nPycharmProjectsPancakeSwap-Price-Scraper-Tutorialvenvlibsite-packagesseleniumwebdriverremoteerrorhandler.py", line 242, in check_response

    raise exception_class(message, screen, stacktrace)

    selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element <button class="sc-jlsrtQ cSnqkB open-currency-select-button">…</button> is not clickable at point (1075, 485). Other element would receive the click: <div role="presentation" class="sc-hOGjNT bEGWpG"></div>

    (Session info: chrome=91.0.4472.106)

  2. Hey man, great idea! How do you change the code, if a token doesn't have a standard Symbol, f.e. just a Token-Adress, then an interaction-menu shows up?

Leave a Reply

Your email address will not be published. Required fields are marked *