View client.py
"""This module is just a collection of examples of how to use the pages module
so one can have some idea of what to do and how to do."""
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from multiprocessing import Process, current_process
from lattes.pages import CurriculumPage, CurriculumXml
from lattes.search import SearchSession
from lattes.config import BaseLogger
import logging
View util.py
from functools import wraps
import requests
def try_request(logger, function):
@wraps(function)
def wrapper(*args, **kw):
try:
return function(*args, **kw)
except requests.exceptions.Timeout as terror:
View params.py
search_data = {
'metodo': 'buscar',
'acao': '',
'resumoFormacao': '',
'resumoAtividade': '',
'resumoAtuacao': '',
'resumoProducao': '',
'resumoPesquisador': '',
'resumoIdioma': '',
'resumoPresencaDGP': '',
View gist:7527b7785569a345973f44236fb75d91
"""
Here is what i need your input for.
I have these 2 buckets of gold i need to get_.
Both require a 3 step process in order to get the bucket.
From those 3 step procedures, the first two are exactly the same making only the 3rd different.
Here are the steps:
1- Get and read a captcha image
2- Answer a question with the captcha read in step 1
3- Get the Bucket of gold
View arconai.py
#!/usr/bin/env python
from bs4 import BeautifulSoup as bs4
from selenium import webdriver
import requests
import sys
import os
import re
class Base:
View 100.py
import os
import re
import errno
import subprocess
from multiprocessing import Process, current_process
import requests
from bs4 import BeautifulSoup as bs4
from selenium import webdriver
from selenium.webdriver.common.keys import Keys