{"id":16630685,"url":"https://github.com/bazarnov/linkedin-token-generator","last_synced_at":"2026-06-23T03:32:25.063Z","repository":{"id":169420830,"uuid":"396847672","full_name":"bazarnov/linkedin-token-generator","owner":"bazarnov","description":"LinkedIn-Ads/Marketing token generator","archived":false,"fork":false,"pushed_at":"2021-08-21T21:07:35.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T18:52:42.706Z","etag":null,"topics":["linkedin","linkedin-api","linkedin-learning","linkedin-scraper"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bazarnov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-16T15:10:05.000Z","updated_at":"2023-09-04T10:56:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"0b3f269b-cadc-43ad-9b60-c8e3d46ff3e5","html_url":"https://github.com/bazarnov/linkedin-token-generator","commit_stats":null,"previous_names":["bazarnov/linkedin-token-generator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bazarnov/linkedin-token-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazarnov%2Flinkedin-token-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazarnov%2Flinkedin-token-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazarnov%2Flinkedin-token-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazarnov%2Flinkedin-token-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bazarnov","download_url":"https://codeload.github.com/bazarnov/linkedin-token-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazarnov%2Flinkedin-token-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34674702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["linkedin","linkedin-api","linkedin-learning","linkedin-scraper"],"created_at":"2024-10-12T04:48:30.996Z","updated_at":"2026-06-23T03:32:25.044Z","avatar_url":"https://github.com/bazarnov.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## First Steps\n1. Install Docker on your system: [Instructions](https://www.docker.com/products/docker-desktop) select your OS.\n2. Clone this project using `code \u003e download as zip` or simply follow the instructions inside `code` section.\n3. Open the folder with cloned project and follow the `Build` instructions.\n\n\n## Build\nBuild the latest Docker image from local folder:\n```\ndocker build . --no-cache -t linkedin-token-generator\n```\nBuild the latest Docker using github link directly:\n```\ndocker build https://github.com/bazarnov/linkedin-token-generator.git --no-cache -t linkedin-token-generator\n```\n\n## Create your config file\n1. Go to `/linkedin_token_generator` folder\n2. Create folder named `secrets`\n3. Use the `../linkedin_token/samples/config.json` to create your own `config.json` file with your credentials.\n4. Put the newly created `config.json` into the `secrets` folder from `step 2`.\n\n## Run\nOpen `/linkedin_token_generator` folder. use the following command in Terminal to run the docker container:\n\n```\ndocker run --rm -v $(pwd)/secrets:/secrets linkedin-token-generator generate --config /secrets/config.json\n```\n\n## Build and Run\nYou can build and run with one command in the terminal, before this, make sure you've followed all the steps from `create your config file`:\n\nFor MacOS X:\nOpen `Terminal` application and use this script:\n\nCreate prepared file structure and open the directory:\n```\nPATH_TO_DIR=$HOME/Desktop \\\n\u0026\u0026 MAIN=linkedin_token \\\n\u0026\u0026 mkdir $MAIN \\\n\u0026\u0026 mkdir $PATH_TO_DIR/$MAIN/secrets/ \\\n\u0026\u0026 touch $PATH_TO_DIR/$MAIN/secrets/config.json \\\n\u0026\u0026 docker build https://github.com/bazarnov/linkedin-token-generator.git -t linkedin-token-generator \\\n\u0026\u0026 echo \"The folder $MAIN is created in $PATH_TO_DIR/$MAIN, docker container is build! Edit your config file\" \\\n\u0026\u0026 open $PATH_TO_DIR/$MAIN/secrets\n```\n\nAfter you've edited your `config.json`, please use the following command to generate your access_token:\n```\nPATH_TO_DIR=$HOME/Desktop \\\n\u0026\u0026 MAIN=linkedin_token \\\n\u0026\u0026 cd $PATH_TO_DIR/$MAIN \\\n\u0026\u0026 docker run --rm -v $(pwd)/secrets:/secrets linkedin-token-generator generate --config /secrets/config.json\n ```\n\nFor Other OS:\nThe instructions for other OS are similar, there is no demand from users to do other instructions so far)\n\n### Typical Output\nYou should now has the similar output to this:\n```\n{'scopes': ['r_emailaddress', 'r_liteprofile'], 'access_token': 'AQVzJ8Ju_----------------------L2hTBgLvcL_FuQ', 'expires_in': 5183999}\n```\n### Using the Output\nNow you should be able to use your `'access_token'` value for making authenticated requests to LinkedIn Ads/Marketing API.\nMore information: [HERE](https://docs.microsoft.com/en-us/linkedin/marketing/getting-started)\n\n#### NOTE: The `'access_token'` is valid for 2 months, after that, you must generate the new one.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazarnov%2Flinkedin-token-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbazarnov%2Flinkedin-token-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazarnov%2Flinkedin-token-generator/lists"}