contaHere is a README.md
for your GitHub repository that presents the information in a clear and visually appealing format, similar to the example you provided:
A JavaScript for Automation (JXA) script to scrape profile data from LinkedIn directly from the active tab of your browser. This tool can extract key information such as name, job title, and current company from a LinkedIn profile, streamlining the process of data collection.
- Multi-browser support: Works with Google Chrome, Arc, and Safari.
- Seamless integration: Automatically detects the active browser and tab.
- Profile data extraction: Scrapes the name, headline, company, and job title from LinkedIn profiles.
- Minimal setup: No additional dependencies required.
- macOS (JavaScript for Automation is a Mac-only feature)
- LinkedIn account
- Supported browser: Google Chrome, Arc, or Safari
-
Clone the repository:
git clone https://github.com/yourusername/linkedin-profile-scraper.git cd linkedin-profile-scraper
-
Run the script using JXA:
- Open the Script Editor on macOS.
- Copy and paste the JavaScript code into the editor.
- Click on the "Run" button.
- Open a LinkedIn profile in one of the supported browsers (Google Chrome, Arc, or Safari).
- Run the JXA script in Script Editor.
- The script will automatically detect the active browser tab and scrape the profile data if a LinkedIn profile is open.
Name: John Doe
Title: Software Engineer at Tech Company
Company: Tech Company
Job Title: Senior Software Engineer
Profile URL: https://www.linkedin.com/in/johndoe/
- Browser Detection: The script loops through the list of supported browsers to check if they are running and have an active window.
- URL Verification: It verifies if the active tab is a LinkedIn profile page (
linkedin.com/in/
). - Data Scraping: Runs JavaScript in the browser context to extract:
- Name from the
.text-heading-xlarge
selector. - Title from the
.text-body-medium
selector. - Experience Section: Searches for the most recent job title and company by traversing the DOM structure.
- Name from the
- Works only on macOS with JXA.
- Requires the user to be logged into LinkedIn.
- May not work if LinkedIn changes its DOM structure or class names.
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
For more information or queries, please reach out to and send a message in my twitter (x): edmund7s
Feel free to replace placeholders like yourusername
, your-email@example.com
, and LICENSE
with your actual details.