Code Monkey home page Code Monkey logo

linkedin_profiles's Issues

Company name with apostrophe

Hello. Firstly, thank you very much for such a great tool.

I'm trying to scrape a company with at least 1000 employees on LinkedIn for a pentest and having issues getting the script to locate the correct page. Not sure if this is an apostrophe issue or if the client I am trying this for has a name that's too similar to other companies.

I've tried the name in quotes and using \ to escape the apostrophe but still no luck. As far as I can tell from searching manually and going to Companies, it is the first on the list, but the script wants to pull the 3rd/4th result.

Do you have any advice? Or is there another way I can provide the page via URL and go directly to it?

Thank you!

PS. I'm happy to open a separate issue for this if you'd like, but this company has affiliate organizations. I've scraped two very successfully but for the third I am getting this when trying to generate emails from the HTML:

Traceback (most recent call last):
File "linkedin_profiles.py", line 258, in
main()
File "linkedin_profiles.py", line 249, in main
pp.print_employees()
File "linkedin_profiles.py", line 170, in print_employees
fname = re.sub('[^A-Za-z]+', '', fname)
UnboundLocalError: local variable 'fname' referenced before assignment

I understand the error in theory but unsure why it's popping up for this. I've referenced first.last for the email format.

I've retested the first two to be sure that I didn't mess anything up and they still seem to be fine. I can write something hacky to get through it but thought I'd try adding it in while I was opening an issue for the above. Thank you again.

Update files as per new Standards

Unfortunately, the files are not the latest Python version. Some packages are deprecated and need to update packages, and we can use another available box in the community. Also, add a requirement.txt file with the setup file. We can even store users' info and utilize it don't need to ask every time we run

New Parsing Issue

Not parsing again, I'll have to debug and fix sometime.

The HTML files are downloaded and not parsed anymore.

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.