Giter Club home page Giter Club logo

lexisnexis-scraping's Introduction

LexisNexis-Scraping

Disclaimer

Disclaimer: The author posed the following code for academic purposes and an illustration of Selenium only. Scraping LexisNexis may be a violation of LexisNexis user policy. Use at your own legal risk.

Requirement

LexisNexis Uni subscription

python v3.6

pandas v0.20.1

selenium v3.141

python-docx v0.8.7

chromedriver.exe

Getting Started

The search query

searchTerms = r'apple shareholder class action'

The Nexis Uni subscription Login Page (Below is the example of USC subscription)

url = r'http://libguides.usc.edu/go.php?c=9232127'

Your Login Informaiton

username = 'MyUSCPassUsername'
password = 'MyUSCPassWord'

The folder you store this file (Below is example of my Desktop)

root = r'C:\Users\chongshu\Desktop\LexisNexis'

Second you wish to restart the program if frozen

dead_time = 300

Do not change the following code

path_to_chromedriver = root + r'\chromedriver'
download_folder = root + r'\download'

Downloading

download_file(url = url, searchTerms = searchTerms, username = username, \
              dead_time = dead_time, path_to_chromedriver=path_to_chromedriver, \
              download_folder = download_folder)

Unzipping file

unzip(download_folder=download_folder)

Create Index

create_index(download_folder=download_folder, searchTerms = searchTerms)

Note

You may also need customerize the following lines depending on your institution's login page:

browser.find_element_by_id('username').send_keys(username)
browser.find_element_by_id('password').send_keys(password)

If your subscription does not require a login, delete the whole login part.

lexisnexis-scraping's People

Contributors

chongshu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.