Web3 Pancakeswap Sniper bot written in python3

Overview

Pancakeswap_BSC_Sniper_Bot

TradingTigers
Web3 Pancakeswap Sniper bot written in python3, Please note the license conditions!

The first Binance Smart Chain sniper bot with Honeypot checker!

Infos

If you have 100 Tigs on your BSC address, the bot will check for liquidity every 0.1 seconds, if you have less than 100 TIGS then only every 5 seconds!

TradingTigers Token @BSC

Sniper Preview

Download

If you are not familiar with Python please have a look at Releases, there you can download Windows executable.

Setup your Address and secret key in keys.json. Edit your Start_Sniper.bat or Start_fastBuy.bat, insert your Token Address want to Snipe/Buy!

You don't need Administrator rights!

Here are all options:

'-t', '--token', Token for snipe e.g. "-t 0xc87b88aafb95f0b88c3a74fc96344e4bccab6bde"
'-a', '--amount', float, Amount in Bnb to snipe e.g. "-a 0.1"
'-s', '--slippage', default=10, slippage in % "-s 10"
'-tx', '--txamount', default=1, how mutch tx you want to send? It Split your BNB Amount in e.g. "-tx 5"
'-swap', '--swap', default=[1], Witch Swap? e.g. "-swap [1]" for Panackeswap
'-hp', '--honeypot', default=True, check if your token to buy is a Honeypot

Install Python

First of all, you need install Python3+

python3 -m pip install -r requirements.txt

Start Sniper:

python3 Sniper.py -t <TOKEN_ADDRESS> -a <AMOUNT> -s <SLIPPAGE> -tx <TXAMOUNT>
python3 Sniper.py -t 0x34faa80fec0233e045ed4737cc152a71e490e2e3 -a 0.1 -s 20 -tx 3
Comments
  • Lost BNB when sell token

    Lost BNB when sell token

    Hi,

    I had an issue when i sold drace token. My tx: https://bscscan.com/tx/0xb252923423b57f08f93d59f14e3cc001fea272d425735ae3e17adad6892921a3

    What happend for my metamask account?

    opened by cuongnguyengit 16
  • Error in fees estimate

    Error in fees estimate

    hey First of all, amazing job !

    Bot was working just fine, then today I start having this error returned

    Attention, they pay 0.7% fees on each transaction. Start Sniper Tool with following arguments:

    Amount for Buy: 0.001 BNB Token to Interact : 0xdac17f958d2ee523a2206206994597c13d831ec7 Transaction to send: 1 Amount per transaction : 0.00100000 Await Blocks before buy : 0

    Start BuyOnly, buy now with 0.001BNB tokens! Traceback (most recent call last): XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sniper.py", line 222, in SniperBot().StartUP() XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sniper.py", line 196, in StartUP print(self.TXN.buy_token()[1]) XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/txns.py", line 99, in buy_token txn.update({ 'gas' : int(self.estimateGas(txn))}) XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/txns.py", line 65, in estimateGas gas = self.w3.eth.estimateGas({ File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/web3/eth.py", line 759, in estimate_gas return self._estimate_gas(transaction, block_identifier) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/web3/module.py", line 57, in caller result = w3.manager.request_blocking(method_str, File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/web3/manager.py", line 198, in request_blocking return self.formatted_response(response, File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/web3/manager.py", line 170, in formatted_response apply_error_formatters(error_formatters, response) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/web3/manager.py", line 70, in apply_error_formatters formatted_resp = pipe(response, error_formatters) File "cytoolz/functoolz.pyx", line 667, in cytoolz.functoolz.pipe File "cytoolz/functoolz.pyx", line 642, in cytoolz.functoolz.c_pipe File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/web3/_utils/method_formatters.py", line 580, in raise_solidity_error_on_revert raise ContractLogicError('execution reverted') web3.exceptions.ContractLogicError: execution reverted

    It seems some issue with selfEstimate gas

    Anyone else having trouble? Do you have any idea what's wrong ? I haven't touched any parameter such as gas price or MaxTax

    Cheers A

    opened by CryptoDoe 6
  • sell error

    sell error

    token: 0x141df21e93460216Fe0692e756927118CE4c65BE error logs:

    Traceback (most recent call last):
      File "/data/Pancakeswap_BSC_Sniper_Bot_v2/Sniper.py", line 264, in <module>
        SniperBot().StartUP()
      File "/data/Pancakeswap_BSC_Sniper_Bot_v2/Sniper.py", line 219, in StartUP
        print(self.TXN.sell_tokens()[1])
      File "/data/Pancakeswap_BSC_Sniper_Bot_v2/txns.py", line 173, in sell_tokens
        txn.update({ 'gas' : int(self.estimateGas(txn))})
      File "/data/Pancakeswap_BSC_Sniper_Bot_v2/txns.py", line 78, in estimateGas
        gas = self.w3.eth.estimateGas({
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/eth.py", line 759, in estimate_gas
        return self._estimate_gas(transaction, block_identifier)
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/module.py", line 57, in caller
        result = w3.manager.request_blocking(method_str,
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/manager.py", line 198, in request_blocking
        return self.formatted_response(response,
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/manager.py", line 170, in formatted_response
        apply_error_formatters(error_formatters, response)
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/manager.py", line 70, in apply_error_formatters
        formatted_resp = pipe(response, error_formatters)
      File "cytoolz/functoolz.pyx", line 667, in cytoolz.functoolz.pipe
      File "cytoolz/functoolz.pyx", line 642, in cytoolz.functoolz.c_pipe
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/_utils/method_formatters.py", line 576, in raise_solidity_error_on_revert
        raise ContractLogicError(response['error']['message'])
    web3.exceptions.ContractLogicError: execution reverted: TransferHelper: TRANSFER_FROM_FAILED
    
    opened by internalsync 4
  • sell error

    sell error

    I sell I my token to remind you of the error。 I'm using the latest version

    Traceback (most recent call last):
      File "/data/Pancakeswap_BSC_Sniper_Bot_v2/Sniper.py", line 264, in <module>
        SniperBot().StartUP()
      File "/data/Pancakeswap_BSC_Sniper_Bot_v2/Sniper.py", line 219, in StartUP
        print(self.TXN.sell_tokens()[1])
      File "/data/Pancakeswap_BSC_Sniper_Bot_v2/txns.py", line 173, in sell_tokens
        txn.update({ 'gas' : int(self.estimateGas(txn))})
      File "/data/Pancakeswap_BSC_Sniper_Bot_v2/txns.py", line 78, in estimateGas
        gas = self.w3.eth.estimateGas({
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/eth.py", line 759, in estimate_gas
        return self._estimate_gas(transaction, block_identifier)
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/module.py", line 57, in caller
        result = w3.manager.request_blocking(method_str,
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/manager.py", line 198, in request_blocking
        return self.formatted_response(response,
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/manager.py", line 170, in formatted_response
        apply_error_formatters(error_formatters, response)
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/manager.py", line 70, in apply_error_formatters
        formatted_resp = pipe(response, error_formatters)
      File "cytoolz/functoolz.pyx", line 667, in cytoolz.functoolz.pipe
      File "cytoolz/functoolz.pyx", line 642, in cytoolz.functoolz.c_pipe
      File "/root/.pyenv/versions/py_3.9.9_pancakeswap_bsc_sniper/lib/python3.9/site-packages/web3/_utils/method_formatters.py", line 576, in raise_solidity_error_on_revert
        raise ContractLogicError(response['error']['message'])
    web3.exceptions.ContractLogicError: execution reverted: TransferHelper: TRANSFER_FROM_FAILED
    
    opened by internalsync 4
  • Auto check Liquidity busd or bnb

    Auto check Liquidity busd or bnb

    I got rektt today Because dev add liquidity in busd and bnb but he put only $2 bnb.

    Hope in the future this bot can check Liquidity first whether busd or bnb. If in bnb but less than 100 bnb for example, bot stop automatically.

    Thank you

    opened by ariffinhamzah 4
  • This contract is not verified and it should be.

    This contract is not verified and it should be.

    This contract is not verified and it should be. everyone should know what it does. ** swapper_address = Web3.toChecksumAddress("0x18be7f977Ec1217B71D0C134FBCFF36Ea4366fCD")

    opened by iv7dev 3
  • Token lost to your contract

    Token lost to your contract

    Hi, I run your program, but only sent my token to your contract address and no later liquidity transaction reward, can you confirm? I need my token back

    image image
    opened by hhhwrld 3
  • Error when selling

    Error when selling

    Token: 0x156df0dd6300c73ac692d805720967cf4464776e web3.exceptions.ContractLogicError: execution reverted: TransferHelper: TRANSFER_FROM_FAILED

    When I set max gas to 1.000.000 and remove line txn.update({ 'gas' : int(self.estimateGas(txn))}), it generated tx, but still failed: https://bscscan.com/tx/0xb880fe3a267069c793be48155c9d4cfcdcc063f963793d0b53142c9bf075e378

    I tried increasing selltax, slippage, but not ok Manually swap on pancakeswap is good.

    opened by xDevilz 3
  • "Sell all tokens" is malfunctioning and lost my BNB

    Hi! Great job on the bot so please don't take this the wrong way but i tried selling all of my tokens i previously purchased. I tried the bot buy feature and it works fine, but the "Sell all tokens" lost my BNB.

    I purchased this token during a pre-sale 0xef9e0b75e78c3398329595b8d33b0636b0055455 - I wanted to use your bot to sell all tokens fast and all at once so i pressed the button and it said Successful but then i noticed that the BNB disappeared from my wallet.

    Here's the tx for the transaction that was made when i wanted to sell all tokens - https://bscscan.com/tx/0xf8d956b6f38ec7353ce9e38ec122fdfac61989202759a90659f02727f2274009 My BSC address that was used for the bot - 0x54D0fa1FD92155E858d42376bD07B52f0272dfCa

    You can see I didn't transfer those BNBs anywhere, but they're gone from my account.

    Can you help me?

    opened by syphlect 3
  • How to compute the total of fee in one transaction?

    How to compute the total of fee in one transaction?

    Many thanks for your project.

    I try to explore some documents about transaction fees but I had troubles. I can't compute the total fee for each transaction. Can you explain for me?

    Thank you.

    opened by cuongnguyengit 3
  • Self hosting the HoneyPot checker

    Self hosting the HoneyPot checker

    Hello,

    Another question, I'm getting a timeout on the honeypot checker. I see you are hosting that honeypot checker yourself.

    For reliabilty is it possible we can host that honeypot checker ourselves?

    opened by timvanuum 3
  • A quick question around Honeypot Checker...

    A quick question around Honeypot Checker...

    Hi, great app but I do have a quick question.

    In the honeypot check section, the call to the getTokenInformations contract returns an array. The values in index 5 and 6 are boolean and if they are both True then it's a honeypot.

    My question: what is index 5 checking for? Also, what is index 6 checking for?

    I don't really want to know the code, all I want to know what is it checking in those indexes.

    Thanks!

    opened by furritos 1
  • Error when using the latest GUI

    Error when using the latest GUI

    [email protected] ~ % ./Pancakeswap_BSC_Sniper_Bot/Sniper.app -t 0xc98a8ec7a07f1b743e86896a52434c4c6a0dbc42 -a 0.001 --buyonly Traceback (most recent call last): File "Sniper.py", line 316, in File "Sniper.py", line 40, in init File "Sniper.py", line 44, in loadSettings FileNotFoundError: [Errno 2] No such file or directory: 'Settings.json' [1634] Failed to execute script Sniper

    I got this error even though i do not change the name of the file.

    Any idea how to fix this ??

    opened by limjame28 0
  • [REQUEST] Transaction Log

    [REQUEST] Transaction Log

    Hi,

    can we have log files? like transaction.log - > all the successful transaction that bot run. errors.log - > error that occur when bot run etc

    Thank you

    opened by ariffinhamzah 0
  • [request] add front-running feature to sell before rug-pull

    [request] add front-running feature to sell before rug-pull

    Hello, it would be nice to implement an enhanced check when the script has completed the buy transaction and it's waiting for the take profit. The bot should scan all the pending transaction and, if a removeLiquidity | changeFees method is being called, the bot should immediately front-run that transaction by sending a sell order with higher gwei. Thanks for your effort

    opened by gabrieleginestroni 5
Releases(V2.2)
Owner
Treading-Tigers
Seven, DEV & CEO of TIGS
Treading-Tigers
A dead simple crawler to get books information from Douban.

Introduction A dead simple crawler to get books information from Douban. Pre-requesites Python 3 Install dependencies from requirements.txt (Optional)

Yun Wang 1 Jan 10, 2022
Web-scraping - Program that scrapes a website for a collection of quotes, picks one at random and displays it

web-scraping Program that scrapes a website for a collection of quotes, picks on

Manvir Mann 1 Jan 07, 2022
A simple, configurable and expandable combined shop scraper to minimize the costs of ordering several items

combined-shop-scraper A simple, configurable and expandable combined shop scraper to minimize the costs of ordering several items. Features Define an

2 Dec 13, 2021
Transistor, a Python web scraping framework for intelligent use cases.

Web data collection and storage for intelligent use cases. transistor About The web is full of data. Transistor is a web scraping framework for collec

BOM Quote Manufacturing 212 Nov 05, 2022
This Scrapy project uses Redis and Kafka to create a distributed on demand scraping cluster

This Scrapy project uses Redis and Kafka to create a distributed on demand scraping cluster.

IST Research 1.1k Jan 06, 2023
Fundamentus scrapy

Fundamentus_scrapy Baixa informacões que os outros scrapys do fundamentus não realizam. Para iniciar (python main.py), sera criado um arquivo chamado

Guilherme Silva Uchoa 1 Oct 24, 2021
Amazon scraper using scrapy, a python framework for crawling websites.

#Amazon-web-scraper This is a python program, which use scrapy python framework to crawl all pages of the product and scrap products data. This progra

Akash Das 1 Dec 26, 2021
Web scrapper para cotizar articulos

WebScrapper Este web scrapper esta desarrollado en python 3.10.0 para buscar en la pagina de cyber puerta articulos dentro del catalogo. El programa t

Jordan Gaona 1 Oct 27, 2021
This program scrapes information and images for movies and TV shows.

Media-WebScraper This program scrapes information and images for movies and TV shows. Summary For more information on the program, read the WebScrape_

1 Dec 05, 2021
Unja is a fast & light tool for fetching known URLs from Wayback Machine

Unja Fetch Known Urls What's Unja? Unja is a fast & light tool for fetching known URLs from Wayback Machine, Common Crawl, Virus Total & AlienVault's

Sheryar 10 Aug 07, 2022
学习强国 自动化 百分百正确、瞬间答题,分值45分

项目简介 学习强国自动化脚本,解放你的时间! 使用Selenium、requests、mitmpoxy、百度智能云文字识别开发而成 使用说明 注:Chrome版本 驱动会自动下载 首次使用会生成数据库文件db.db,用于提高文章、视频任务效率。 依赖安装 pip install -r require

lisztomania 359 Dec 30, 2022
京东茅台抢购

截止 2021/2/1 日,该项目已无法使用! 京东:约满即止,仅限京东实名认证用户APP端抢购,2月1日10:00开始预约,2月1日12:00开始抢购(京东APP需升级至8.5.6版本及以上) 写在前面 本项目来自 huanghyw - jd_seckill,作者的项目地址我找不到了,找到了再贴上

abee 73 Dec 03, 2022
Web Content Retrieval for Humans™

Lassie Lassie is a Python library for retrieving basic content from websites. Usage import lassie lassie.fetch('http://www.youtube.com/watch?v

Mike Helmick 570 Dec 19, 2022
Bulk download tool for the MyMedia platform

MyMedia Bulk Content Downloader This is a bulk download tool for the MyMedia platform. USE ONLY WHERE ALLOWED BY THE COPYRIGHT OWNER. NOT AFFILIATED W

Ege Feyzioglu 3 Oct 14, 2022
腾讯课堂,模拟登陆,获取课程信息,视频下载,视频解密。

腾讯课堂脚本 要学一些东西,但腾讯课堂不支持自定义变速,播放时有水印,且有些老师的课一遍不够看,于是这个脚本诞生了。 时间比较紧张,只会不定时修复重大bug。多线程下载之类的功能更新短期内不会有,如果你想一起完善这个脚本,欢迎pr 2020.5.22测试可用 使用方法 很简单,三部完成 下载代码,

163 Dec 30, 2022
A simple app to scrap data from Twitter.

Twitter-Scraping-App A simple app to scrap data from Twitter. Available Features Search query. Select number of data you want to fetch from twitter. C

Davis David 2 Oct 31, 2022
Explore scraping with BeautifulSoup!

beautifulsoup-scrape Explore scraping with BeautifulSoup! Part One: Start from Shakespeare As my professor is a poet (yes, and he teaches me data and

Chuqin 2 Oct 05, 2022
Twitter Eye is a Twitter Information Gathering Tool With Twitter Eye

Twitter Eye is a Twitter Information Gathering Tool With Twitter Eye, you can search with various keywords and usernames on Twitter.

Jolanda de Koff 19 Dec 12, 2022
script to scrape direct download links (ddls) from google drive index.

bhadoo Google Personal/Shared Drive Index scraper. A small script to scrape direct download links (ddls) of downloadable files from bhadoo google driv

sαɴᴊɪᴛ sɪɴʜα 53 Dec 16, 2022
A web scraper for nomadlist.com, made to avoid website restrictions.

Gypsylist gypsylist.py is a web scraper for nomadlist.com, made to avoid website restrictions. nomadlist.com is a website with a lot of information fo

Alessio Greggi 5 Nov 24, 2022