
نص برمجي بلغة بايثون 3 لتفريغ/كشط/استخراج موظفي الشركة من واجهة برمجة تطبيقات لينكد إن
LinkedInDumper هو نص Python 3 يقوم بتفريغ بيانات الموظفين من منصة التواصل الاجتماعي LinkedIn.
تحتوي النتائج على الاسم الأول، اسم العائلة، المنصب (المسمى الوظيفي)، الموقع، ورابط ملف المستخدم الشخصي. يلزم استدعاءان فقط لواجهة API لاسترداد جميع الموظفين إذا كان عدد موظفي الشركة لا يتجاوز 10. وإلا، يجب التنقل بين صفحات نتائج API. باستخدام علامة سطر الأوامر --email-format يمكنك تحديد تنسيق نص Python لإنشاء عناوين البريد الإلكتروني تلقائيًا بناءً على الاسم الأول واسم العائلة المستردين.
يتفاعل LinkedInDumper مع واجهة LinkedIn Voyager API غير الرسمية، والتي تتطلب مصادقة. لذلك، يجب أن يكون لديك حساب مستخدم صالح على LinkedIn. للتبسيط، يتوقع LinkedInDumper قيمة ملف تعريف ارتباط (cookie) تقدمها أنت. بهذه الطريقة، حتى الحسابات المحمية بتوثيق ثنائي العامل (2FA) مدعومة. علاوة على ذلك، يجب عليك توفير رابط شركة LinkedIn لتفريغ موظفيها.
li_at الخاص بك، مثلاً من خلال أدوات المطورli_at أو مؤقتًا أثناء التشغيل عبر علامة سطر الأوامر --cookieusage: linkedindumper.py [-h] --url <linkedin-url> [--cookie <cookie>] [--quiet] [--include-private-profiles] [--include-contact-infos] [--jitter] [--email-format <mail-format>] [--output-json <json-file>] [--output-csv <csv-file>]
options:
-h, --help show this help message and exit
--url <linkedin-url> A LinkedIn company url - https://www.linkedin.com/company/<company>
--cookie <cookie> LinkedIn 'li_at' session cookie
--include-private-profiles
Show private accounts too
--include-contact-infos
Query each employee individually and retrieve contact infos
--jitter Add a random jitter to HTTP requests to bypass rate limiting
--email-format <mail-format>
Python string format for emails; for example:
--email-format '{0}.{1}@example.com' --> [email protected]
--email-format '{0[0]}.{1}@example.com' --> [email protected]
--email-format '{1}@example.com' --> [email protected]
--email-format '{0}@example.com' --> [email protected]
--email-format '{0[0]}{1[0]}@example.com' --> [email protected]
--output-json <json-file>
Store results in json output file
--output-csv <csv-file>
Store results in csv output file
docker run --rm l4rm4nd/linkedindumper:latest --url 'https://www.linkedin.com/company/apple' --cookie '<cookie>' --email-format '{0}.{1}@apple.de'
# install dependencies
pip install -r requirements.txt
python3 linkedindumper.py --url 'https://www.linkedin.com/company/apple' --cookie '<cookie>' --email-format '{0}.{1}@apple.de'
يقوم النص بإرجاع بيانات الموظفين كقيم مفصولة بفاصلة منقوطة (مثل CSV):
██▓ ██▓ ███▄ █ ██ ▄█▀▓█████ ▓█████▄ ██▓ ███▄ █ ▓█████▄ █ ██ ███▄ ▄███▓ ██▓███ ▓█████ ██▀███
▓██▒ ▓██▒ ██ ▀█ █ ██▄█▒ ▓█ ▀ ▒██▀ ██▌▓██▒ ██ ▀█ █ ▒██▀ ██▌ ██ ▓██▒▓██▒▀█▀ ██▒▓██░ ██▒▓█ ▀ ▓██ ▒ ██▒
▒██░ ▒██▒▓██ ▀█ ██▒▓███▄░ ▒███ ░██ █▌▒██▒▓██ ▀█ ██▒░██ █▌▓██ ▒██░▓██ ▓██░▓██░ ██▓▒▒███ ▓██ ░▄█ ▒
▒██░ ░██░▓██▒ ▐▌██▒▓██ █▄ ▒▓█ ▄ ░▓█▄ ▌░██░▓██▒ ▐▌██▒░▓█▄ ▌▓▓█ ░██░▒██ ▒██ ▒██▄█▓▒ ▒▒▓█ ▄ ▒██▀▀█▄
░██████▒░██░▒██░ ▓██░▒██▒ █▄░▒████▒░▒████▓ ░██░▒██░ ▓██░░▒████▓ ▒▒█████▓ ▒██▒ ░██▒▒██▒ ░ ░░▒████▒░██▓ ▒██▒
░ ▒░▓ ░░▓ ░ ▒░ ▒ ▒ ▒ ▒▒ ▓▒░░ ▒░ ░ ▒▒▓ ▒ ░▓ ░ ▒░ ▒ ▒ ▒▒▓ ▒ ░▒▓▒ ▒ ▒ ░ ▒░ ░ ░▒▓▒░ ░ ░░░ ▒░ ░░ ▒▓ ░▒▓░
░ ░ ▒ ░ ▒ ░░ ░░ ░ ▒░░ ░▒ ▒░ ░ ░ ░ ░ ▒ ▒ ▒ ░░ ░░ ░ ▒░ ░ ▒ ▒ ░░▒░ ░ ░ ░ ░ ░░▒ ░ ░ ░ ░ ░▒ ░ ▒░
░ ░ ▒ ░ ░ ░ ░ ░ ░░ ░ ░ ░ ░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ░░░ ░ ░ ░ ░ ░░ ░ ░░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
░ ░ ░ by LRVT
[i] Company Name: apple
[i] Company X-ID: 162479
[i] LN Employees: 1000 employees found
[i] Dumping Date: 17/10/2022 13:55:06
[i] Email Format: {0}.{1}@apple.de
Firstname;Lastname;Email;Position;Gender;Location;Profile
Katrin;Honauer;[email protected];Software Engineer at Apple;N/A;Heidelberg;https://www.linkedin.com/in/katrin-honauer
Raymond;Chen;[email protected];Recruiting at Apple;N/A;Austin, Texas Metropolitan Area;https://www.linkedin.com/in/raytherecruiter
[i] Successfully crawled 2 unique apple employee(s). Hurray ^_-
يمكنك اختياريًا استخدام معلمات سطر الأوامر --output-json و --output-csv لتخزين النتائج كملفات JSON أو CSV.
سيسمح LinkedIn فقط بإرجاع أول 1,000 نتيجة بحث عند جمع معلومات الاتصال. قد تحتاج أيضًا إلى حساب LinkedIn Premium عند الوصول إلى الحد الأقصى المسموح به من الاستعلامات لزيارة الملفات الشخصية باستخدام حسابك المجاني (freemium).