Bitcoin Forum
May 02, 2024, 07:14:39 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 [34] 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 »
661  Bitcoin / Project Development / Quote/Keyword/Reply/Topic Notifier on: May 24, 2019, 03:14:48 PM
A bot which will notifies you about:

  • Any new reply to your post
  • If anyone quotes you or mentions your username
  • If any new topic or reply contains your keywords

It uses pushbullet app(available on both iPhone and android), or Telegram to send notifications.

Like this:



Make sure to pip install these two libraries:
pushbullet.py
bs4

After installing these two libraries, copy/paste and run the code


Here is the code:
No need to edit anything in the script.

Code:

notifm=input("Choose notification method.\nEnter 1 for Telegram Bot\nEnter 2 for Pushbullet")
if (notifm=='2'):
 token=input("Enter Token: ")

if (notifm=='1'):
 btoken=input("Enter Bot Token: ")
 chatid=input("Enter Your CHAT ID: ")


keywords=[]
topics=[]
cc='y'
vv=0
while cc=='y' or cc=='Y' or cc=='yes' or cc=='Yes' or cc=='YES':
 vva=vv+1
 vva=str(vva)
 kw=input("Enter #"+vva+" Keyword/username(Just Press enter if no keyword) ")
 keywords.insert(vv,kw)
 vv+=1
 cc=input("Add more keyword/username? y/n ")

vv=0
cc1='y'
while cc1=='y' or cc1=='Y' or cc1=='yes' or cc1=='Yes' or cc1=='YES':
 vva=vv+1
 vva=str(vva)
 kw=input("Enter #"+vva+" Topic title(Just Press enter if none) ")
 kw=kw.lstrip()
 topics.insert(vv,kw)
 vv+=1
 cc1=input("Add more Topics? y/n ")

import requests

import re

from bs4 import BeautifulSoup

from datetime import datetime

from pushbullet import Pushbullet

from time import sleep

url="https://bitcointalk.org/index.php?action=recent"

headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36'}

if (notifm=='2'):
 pb= Pushbullet(token)

done=[]
i=0
key=0
print('Working..')

while True:

 page = requests.get(url, headers=headers)
 soup=BeautifulSoup(page.content, 'html.parser')
 if topics[0] != "":
   for s in topics:
    s='Re: '+s
    for a in soup.findAll('a', text=s):
      if not a.get('href') in done:
       done.insert(i,a.get('href'))
       i+=1
       ptitle='New Reply on your topic'
       ptext='Link: '+a.get('href')
       if(notifm=='2'):
        push = pb.push_note(ptitle,ptext)
       if(notifm=='1'):
        push = "https://api.telegram.org/bot"+btoken+"/sendMessage?chat_id="+chatid+"&text="+ptitle+" "+ptext
        requests.get(push, headers=headers)
       print('New topic found, sending message')
       sleep(300)
 if keywords[0] != "":
  for x in keywords:
   table=soup.find_all('table',attrs={'class':'bordercolor'})
   for t in table:
     results=t.find(string=re.compile('.*{0}.*'.format(x)))
     if results!=None:
      s=t.find('b')
      title=s.text
      li=s.find('a')
      if not li.get('href') in done:
        done.insert(i,li.get('href'))
        i+=1
        ptext='Title: '+title+' Link:'+li.get('href')
        ptitle='Post with keyword: *'+x+'* Found'
        if(notifm=='2'):
         push = pb.push_note(ptitle,ptext)
        if(notifm=='1'):
         push = "https://api.telegram.org/bot"+btoken+"/sendMessage?chat_id="+chatid+"&text="+ptitle+" "+ptext
         requests.get(push, headers=headers)
        print("Keyword found, sending message")
        sleep(300)
    
  

 sleep(20)
 



You can find API token of your pushbullet account here:
https://www.pushbullet.com/#settings/account

If you are using telegram as notification method instead of Pusbullet, you will need a Bot token ID and your CHAT ID.
Here's how to procure these two things:
 1.)Use godfather to create a new bot and note down its token ID. Make sure to send a /start message to that bot.
 2.)Send a message to @RawDataBot, it will reply back with your Chat ID. See pic https://i.imgur.com/TsFUsFB.png


You can install Termux on your phone, to run this script 24*7 by using termux-wake-lock (Haven't tested it yet but should work, it might drain your battery)

It's better to use the script on your PC, by installing python on it.

I will be adding a new update for sock usage, so that you can run it on a VPS. You won't be able to run this script on a VPS for now because cloudflare won't let a datacenter IP address to scrap recent pages.



Reply here, if you face any problem.

662  Economy / Digital goods / [H]Overwatch PC [W]10$ on: May 17, 2019, 09:14:28 PM
As the title says.
663  Economy / Services / Re: [C] Create Telegram Bots on: May 13, 2019, 04:33:29 PM
I've heard theres bots which can resend you messages from a temporary mail. Can you do such stuff?
Yes, please check your PM
664  Economy / Services / Re: [C] Create Telegram Bots on: May 13, 2019, 11:57:56 AM
Up
665  Economy / Services / Re: [CFNP] BitBlender Signature Campaign | Up to 0.0003BTC/Post | Member - Legendary on: April 22, 2019, 02:45:30 PM
By any chance, can I apply for a full member spot?
Yes, you can but 2 conditions:
1. First, earn merit
2. Wait for the announcement.

You have earned 0 merits this year. Which is not accepted on this campaign. Your last earned merit about 7 months ago. Source
Even if it was 7 months back, I did gave something to the community.And I can do it again, if I get the motive :v
666  Economy / Services / Re: [CFNP] BitBlender Signature Campaign | Up to 0.0003BTC/Post | Member - Legendary on: April 22, 2019, 02:12:32 PM
Why did you assume the manager don't check any of their post?

*Just my 2 cents*

No need to claims people are spamming if you want to apply. And no, this campaign is closed for new participants as you can read by yourself at the title.

Spreadsheet has 3 Full members, that's why the question.



Mainly because he got offended by condoras words. https://bitcointalk.org/index.php?topic=1596878.msg50722882#msg50722882

And to give you an honest opinion, the CM does his work accordingly, so no need to lecture him on what he is suppose to do with the post to be accepted. It is within his own discretion, and so far the participants of this campaign is doing fairly enough good compared to other campaigns.

I there would would be unacceptable post, it is merely not counted as far as I've know Hhampuz.

Yup, And I thought he did it for increasing the eligible post count.
667  Economy / Services / Re: [C] Create Telegram Bots on: April 22, 2019, 01:52:02 PM
Bump.Can create airdrop bots too, for cheap.
PM me~
668  Economy / Lending / Re: ★ ★ ★ LENDING ► CONDORAS SERVICE ◄ ESCROW ★ ★ ★ on: April 22, 2019, 01:37:31 PM
How much is that collateral worth? I am clueless about it.

You are clueless about it's price but you put it as Collateral? Undecided
This is not a sale and i'm not interesting to buy anything. Besides it worth 0 for me and i bet to everybody else around here.
I will suggest to read before you post (again) asking someone for a loan... Wink

- Condoras -

I wasn't putting it for sale, nor am I interested to sell it.I would rather keep it then throw it away for a 50$ loan.
I proposed an offer for the collateral part, there is no reason to be rude about it.Unless you just want to increase your eligible post count for some campaign.

Regards.

669  Economy / Gambling discussion / Re: CS:GO Esports Betting Predictions and Discussion Thread | IEM Katowice 2019 on: March 01, 2019, 04:15:48 PM
What do you think about MiBr vs ren? I am thinking of picking ren for Map 2.
670  Economy / Services / Re: [C] Create Telegram Bots on: February 25, 2019, 08:03:15 PM
Can TG bots be used for FIAT payment?
Yup, you can accept payment in FIAT using TG bots.
TG doesn't have it's own payment provider, it works with other services to implement it.The most common gateway provider for telegram bots is stripe.

Check this out for more info:
https://core.telegram.org/bots/payments

Contact me, if you want it developed.
671  Economy / Gambling discussion / Re: CS:GO Esports Betting Predictions and Discussion Thread | IEM Katowice 2019 on: February 25, 2019, 02:42:04 PM
I placed a few mBTC on NIP, won't say it was because of you but did help me in confirming my pick lol
I want NIP to win a major again! get_right take my energy uuuwuu
672  Economy / Gambling discussion / Re: IPL 2019 Perdition Pool [proposal] on: February 25, 2019, 02:34:04 PM
Looks interesting, following this thread.
673  Economy / Invites & Accounts / Re: [H]LuxSocks Account [W]200$ on: February 20, 2019, 07:33:30 AM
Bump, can resell individual socks too.
Will charge 1$ for every sock.Extra clean and your location.
674  Economy / Gambling / Re: ⚽ Sportsbet.io ⚽ Fun! 🏀 Fast! 🎾 Fair!🏆 on: January 11, 2019, 11:31:06 AM
Hey Guys,

Site is down at the moment, our techs are looking into it urgently. Everything is safe.

thanks,

Steve.
Hello, I love tennis, but I do not bet on sportsbet, because I do not like your rules. When you change them, I'll be happy to bet tennis on sportsbets too.
What rules? I am betting on tennis for a while on sportsbet, and looks fine to me.
Are other books providing better options?
675  Economy / Gambling / Re: ⚽ Sportsbet.io ⚽ Fun! 🏀 Fast! 🎾 Fair!🏆 on: January 11, 2019, 10:27:52 AM
I am getting 503 error, while accessing the website.
Funds are safu?
676  Economy / Services / Re: Withdraw money from my limited stealth paypal account on: December 21, 2018, 12:51:32 PM
Bump.Open for offers.
677  Economy / Services / Re: Withdraw money from my limited stealth paypal account on: December 16, 2018, 05:56:56 AM
I am getting these options now:
https://imgur.com/a/MyyochH

If anyone has a US bank account,  then they can withdraw the amount.
I can sell the account with FE for $170 in bitcoins.
PM me.
678  Bitcoin / Bitcoin Discussion / Re: Satoshi Nakamoto P2P new post on: November 30, 2018, 11:25:00 AM
It's Craig wright. He's the real SATOSHI.
ALL IN SV.

679  Economy / Digital goods / Re: Buy anything you want from AMAZON with a DISCOUNT! Sell your funds for BTC also! on: October 28, 2018, 10:14:50 PM
Till now I have bought a total of $515 balance from him.All the products that I ordered using the balance, are either delivered or shipping.
No problem till now, Huge rep!
680  Economy / Gambling / Re: ⚽ Sportsbet.io - FREE SPINS for NBA and NBA HANDICAP HERO!🏀🏆 on: October 25, 2018, 10:40:40 AM
@edgycorner   Probably they are great for you .... But a big bet is more than 1 BTC

Quote
Some of *my* big bets.
I always gamble in limit.So, they are big for *me*.

And I was replying to the 100MBTCish comment.Don't @ me without knowing the reference.

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 [34] 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!