flavio.rib avatar

PRESEARCH TIP automatic Search

flavio.rib

Published: 29 Dec 2018 › Updated: 29 Dec 2018PRESEARCH TIP automatic Search

PRESEARCH TIP automatic Search

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:
Capture.JPG

Leave PRESEARCH TIP automatic Search to:

Written by

Read more #cryptocurrency posts


Best Posts From flavio.rib

We have not curated any of flavio.rib's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From flavio.rib