Example #1
0
def query_updates():
    app.logger.info('running query updates')
    api = Linkedin('*****@*****.**', 'prueba1020')
    location_name = 'Estados Unidos'
    location_id = 'us:0'
    terms = Term.query.all()
    for term in terms:
        _total = api.searchTotal({
            'keywords': term.term,
            'location': location_name,
            'locationId': location_id,
            'type': 'JOBS',
            'query': 'search',
        })
        job = Job(location=location_id, total=_total, term=term)
        app.logger.info(f'updated {term.term} : {_total}')
        db.session.add(job)
        db.session.commit()
    app.logger.info("finished querying")
Example #2
0
from linkedin_api import Linkedin

# Authenticate using any Linkedin account credentials
api = Linkedin('*****@*****.**', 'pipuchis10')

# GET a profile
profile = api.searchTotal({
    'keywords': 'java',
    'location': 'Estados Unidos',
    'locationId': 'us:0',
    'type': 'JOBS',
    'query': 'search',
})