____  ___    _  _     _   _ _____     _______
 / ___|/ _ \  | || |   | | | |_ _\ \   / / ____|
| |  _| | | | | || |_  | |_| || | \ \ / /|  _|
| |_| | |_| | |__   _| |  _  || |  \ V / | |___
 \____|\___/     |_|   |_| |_|___|  \_/  |_____|

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

PRESEARCH TIP automatic Search

BY: @flavio.rib | CREATED: Dec. 29, 2018, 8:17 p.m. | VOTES: 1 | PAYOUT: $0.00 | [ VOTE ]

Dear All today I bing a script to ear PRESEARCH without doing nothing.

you need to go on:
https://repl.it

then copy this script and edit your user and password
> import requests
from bs4 import BeautifulSoup
from random import choice, randrange
from time import sleep
import sys
EMAIL = ''
PASSWORD = ''
FILE = 'Words.txt' # Words to search, random pick
SKETCHY_API = '' # SketchyLab API key
MIN_DELAY = 100 # Delay between searches
MAX_DELAY = 300
r = requests.Session()
token = ''
user_agent = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36'
if SKETCHY_API:
response = requests.get('https://sketchylabs.io/api/ua/desktop?key={}'.format(SKETCHY_API)).json()
user_agent = response['data']['ua']
r.headers.update({
'User-Agent': user_agent
})
def wait():
delay = randrange(MIN_DELAY, MAX_DELAY)
for i in range(delay, 0, -1):
sys.stdout.write("\r")
sys.stdout.write("{:2d} seconds remaining.".format(i))
sys.stdout.flush()
sleep(1)
def get_token():
content = r.get("https://presearch.org/login").content
soup = BeautifulSoup(content, 'html.parser')
return soup.find("input", {"name": "_token"})["value"]
def login():
payload = {
'_token': token,
'login_form': '1',
'email': EMAIL,
'password': PASSWORD,
'remember': '1'
}
response = r.post('https://presearch.org/api/auth/login', data=payload).json()
if response['status'] == 'OK':
print("Successfully logged in")
def search():
with open(FILE) as f:
words = f.read().splitlines()
for x in range(32):
while True:
word = choice(words)
if len(word) > 6:
break
payload = {
'term': word,
'provider_id': '98',
'_token': token
}
print('Search term: {}'.format(word))
r.post('https://presearch.org/search', data=payload)
wait()
def get_balance():
dashboard = r.get("https://www.presearch.org/")
soup = BeautifulSoup(dashboard.content, 'html.parser')
balance = soup.find("span", {"class": "number"})
print("Balance: {} PRE".format(balance.text))
token = get_token()
login()
get_balance()
search()
get_balance()

Then add a File call Words.txt and copy the content of this website:
https://raw.githubusercontent.com/first20hours/google-10000-english/master/google-10000-english.txt

Now put this running once a day and you will have yours 32 Search a day.

This most be the result:
[IMAGE: https://cdn.steemitimages.com/DQmWYAYLQC3FNXQJUXLJ7pSNZJogx8LD7Hta8TQaif4cgz2/Capture.JPG]

TAGS: [ #cryptocurrency ] [ #pt ] [ #freecoins ] [ #earn ] [ #bitcoin ]

Replies

@zenigeva | Dec. 30, 2018, 2:07 p.m. | Votes: 0 | [ VOTE ]

 File "main.py", line 16
response = requests.get('https://sketchylabs.io/api/ua/desktop?key={}'.format(SKETCHY_API)).json()
^
IndentationError: expected an indented block

KeyboardInterrupt

@flavio.rib | Dec. 30, 2018, 2:24 p.m. | Votes: 0 | [ VOTE ]

This was I copy to steem in a few hours I Will put in past bin

Posted using Partiko iOS

@flavio.rib | Dec. 30, 2018, 6:56 p.m. | Votes: 1 | [ VOTE ]

https://pastebin.com/HfxNpHw7

@zenigeva | Dec. 30, 2018, 9 p.m. | Votes: 0 | [ VOTE ]

ah this works - great Thanks

[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>