Repository navigation
Expand file tree
/
Copy pathdecode_data.py
More file actions
23 lines (15 loc) · 13.3 KB
/
Copy pathdecode_data.py
File metadata and controls
23 lines (15 loc) · 13.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import json
import html
import re
# Test the function
code_string = '''<code style="display: none" id="bpr-guid-5225016">{"data ":{"dashEntityUrn ":"urn:li:fsd_jobPosting:4033248399 ","companyDetails ":{"company ":"urn:li:fs_normalized_company:8735 ","*companyResolutionResult ":"urn:li:fs_normalized_company:8735 ","$recipeTypes ":["com.linkedin.voyager.deco.jobs.web.shared.WebCompactJobPostingCompany "],"$type ":"com.linkedin.voyager.jobs.JobPostingCompany "},"jobState ":"LISTED ","description ":{"attributes ":[{"start ":0,"length ":9,"type ":{"$type ":"com.linkedin.pemberly.text.Paragraph "},"attributeKindUnion ":{"paragraph ":{"$type ":"com.linkedin.pemberly.text.Paragraph "}},"$type ":"com.linkedin.pemberly.text.Attribute "},{"start ":9,"length ":331,"type ":{"$type ":"com.linkedin.pemberly.text.Paragraph "},"attributeKindUnion ":{"paragraph ":{"$type ":"com.linkedin.pemberly.text.Paragraph "}},"$type ":"com.linkedin.pemberly.text.Attribute "},{"start ":340,"length ":246,"type ":{"$type ":"com.linkedin.pemberly.text.Paragraph "},"attributeKindUnion ":{"paragraph ":{"$type ":"com.linkedin.pemberly.text.Paragraph "}},"$type ":"com.linkedin.pemberly.text.Attribute "},{"start ":586,"length ":101,"type ":{"$type ":"com.linkedin.pemberly.text.Paragraph "},"attributeKindUnion ":{"paragraph ":{"$type ":"com.linkedin.pemberly.text.Paragraph "}},"$type ":"com.linkedin.pemberly.text.Attribute "},{"start ":687,"length ":295,"type ":{"$type ":"com.linkedin.pemberly.text.Paragraph "},"attributeKindUnion ":{"paragraph ":{"$type ":"com.linkedin.pemberly.text.Paragraph "}},"$type ":"com.linkedin.pemberly.text.Attribute "},{"start ":982,"length ":1,"type ":{"$type ":"com.linkedin.pemberly.text.LineBreak "},"attributeKindUnion ":{"lineBreak ":{"$type ":"com.linkedin.pemberly.text.LineBreak "}},"$type ":"com.linkedin.pemberly.text.Attribute "},{"start ":982,"length ":1,"type ":{"$type ":"com.linkedin.pemberly.text.Paragraph "},"attributeKindUnion ":{"paragraph ":{"$type ":"com.linkedin.pemberly.text.Paragraph "}},"$type ":"com.linkedin.pemberly.text.Attribute "},{"start ":983,"length ":7,"type ":{"$type ":"com.linkedin.pemberly.text.Paragraph "},"attributeKindUnion ":{"paragraph ":{"$type ":"com.linkedin.pemberly.text.Paragraph "}},"$type ":"com.linkedin.pemberly.text.Attribute "},{"start ":990,"length ":35,"type ":{"$type ":"com.linkedin.pemberly.text.Paragraph "},"attributeKindUnion ":{"paragraph ":{"$type ":"com.linkedin.pemberly.text.Paragraph "}},"$type ":"com.linkedin.pemberly.text.Attribute "},{"start ":1025,"length ":37,"type ":{"$type ":"com.linkedin.pemberly.text.Paragraph "},"attributeKindUnion ":{"paragraph ":{"$type ":"com.linkedin.pemberly.text.Paragraph "}},"$type ":"com.linkedin.pemberly.text.Attribute "},{"start ":1062,"length ":46,"type ":{"$type ":"com.linkedin.pemberly.text.Paragraph "},"attributeKindUnion ":{"paragraph ":{"$type ":"com.linkedin.pemberly.text.Paragraph "}},"$type ":"com.linkedin.pemberly.text.Attribute "},{"start ":1108,"length ":69,"type ":{"$type ":"com.linkedin.pemberly.text.Paragraph "},"attributeKindUnion ":{"paragraph ":{"$type ":"com.linkedin.pemberly.text.Paragraph "}},"$type ":"com.linkedin.pemberly.text.Attribute "}],"text ":"מי אנחנו?אחת מחברת ה- IT והתקשורת המובילות בישראל, המספקת מגוון שירותים ללקוחות עסקיים העוסקים במגוון תחומים. אנחנו עוסקים בעולמות של שירותי מחשוב וענן, פתרונות אבטחת מידע, פתרונות גיבוי ו- DR, תקשורת, דאטה, אירוח בחוות שרתים ועוד. בבעלותנו 5 חוות שרתים, 2 חברות בנות שהן זרועות הענן שלנו בAWS וב AZURE, וכבל תת ימי שמחבר בינינו לבין העולם!העובדים והעובדות שלנו רוכשים ידע על המוצרים הטכנולוגיים המובילים של היצרנים הגדולים במשק כמו Microsoft, CISCO, Juniper, Fortinet, F5 ועוד רבים וטובים, באמצעותם מייצרים ללקוחות החברה פתרונות ושירות טכנולוגי מובילים, המסייעים בשלל התהליכים העסקיים.בזק בינלאומי מגייסת מומח/ית מכירה DATA CENTER , תחום המהווה את אחד משירותי הליבה המשמעותיים של החברה.התפקיד כולל עבודה מול לקוחותינו העסקיים מכלל הסגמנטים תוך מיקוד במכירות DATA CENTER. במסגרת התפקיד, זיהוי הזדמנויות עסקיות, ליווי והובלת תהליכי מכירות מתחילתם ועד סגירתם, טיפול בלקוחות קיימים תוך חיזוק היחסים מולם ויצירת הזדמנויות חדשות בפתרונות DC במקביל לפעילות פרואקטיבית ואיתור לקוחות חדשים.\nדרישות:ניסיון מוכח בתחום המכירות-שטח- חובהניסיון בעבודה מול לקוחות עסקיים- חובההיכרות מקצועית טובה עם עולמות הדאטה סנטר- חובההיכרות עם פתרונות טכנולוגיים נוספים מעולמות האינטגרציה- יתרון משמעותי ","$type ":"com.linkedin.pemberly.text.AttributedText "},"repostedJobPosting ":null,"title ":"Data center sales specialist (12116)","entityUrn ":"urn:li:fs_normalized_jobPosting:4033248399 ","workRemoteAllowed ":false,"applyMethod ":{"type ":"CONTACT_INFORMATION ","unifyApplyEnabled ":true,"$type ":"com.linkedin.voyager.jobs.SimpleOnsiteApply "},"talentHubJob ":false,"formattedLocation ":"Petah Tikva, Center District, Israel ","workplaceTypes ":["urn:li:fs_workplaceType:1 "],"listedAt ":1727247976000,"$recipeTypes ":["com.linkedin.voyager.deco.jobs.web.shared.WebLightJobPosting "],"$type ":"com.linkedin.voyager.jobs.JobPosting ","standardizedAddresses ":null,"jobPostingId ":4033248399,"workplaceTypesResolutionResults ":{"*urn:li:fs_workplaceType:1 ":"urn:li:fs_workplaceType:1 "}},"meta ":{"microSchema ":{"version ":"2 ","types ":{"com.linkedin.voyager.deco.jobs.web.shared.WebLightJobPosting ":{"fields ":{"dashEntityUrn ":{"type ":"string "},"companyDetails ":{"type ":{"union ":["com.linkedin.voyager.jobs.JobPostingCompanyName ","com.linkedin.voyager.deco.jobs.web.shared.WebCompactJobPostingCompany "]}},"talentHubJob ":{"type ":"boolean "},"jobState ":{"type ":"string "},"formattedLocation ":{"type ":"string "},"description ":{"type ":"com.linkedin.pemberly.text.AttributedText "},"repostedJobPosting ":{"type ":"string "},"workplaceTypes ":{"type ":{"array ":"string "}},"listedAt ":{"type ":"long "},"title ":{"type ":"string "},"standardizedAddresses ":{"type ":"com.linkedin.voyager.jobs.JobPostingAddresses "},"jobPostingId ":{"type ":"long "},"workRemoteAllowed ":{"type ":"boolean "},"entityUrn ":{"type ":"string "},"applyMethod ":{"type ":{"union ":["com.linkedin.voyager.jobs.UnknownApply ","com.linkedin.voyager.jobs.ComplexOnsiteApply ","com.linkedin.voyager.jobs.SimpleOnsiteApply ","com.linkedin.voyager.jobs.OffsiteApply "]}},"workplaceTypesResolutionResults ":{"type ":{"map ":"com.linkedin.voyager.deco.jobs.shared.WebJobDetailsWorkplaceType "},"resolvedFrom ":"workplaceTypes "}},"baseType ":"com.linkedin.voyager.jobs.JobPosting "},"com.linkedin.voyager.deco.jobs.web.shared.WebCompactJobPostingCompany ":{"fields ":{"companyResolutionResult ":{"type ":"com.linkedin.voyager.deco.organization.shared.WebCompactCompany ","resolvedFrom ":"company "},"company ":{"type ":"string "}},"baseType ":"com.linkedin.voyager.jobs.JobPostingCompany "},"com.linkedin.voyager.deco.jobs.shared.WebJobDetailsWorkplaceType ":{"fields ":{"entityUrn ":{"type ":"string "},"localizedName ":{"type ":"string "}},"baseType ":"com.linkedin.voyager.jobs.shared.WorkplaceType "},"com.linkedin.voyager.deco.organization.shared.WebCompactCompany ":{"fields ":{"name ":{"type ":"string "},"logo ":{"type ":"com.linkedin.voyager.organization.CompanyLogoImage "},"universalName ":{"type ":"string "},"entityUrn ":{"type ":"string "},"url ":{"type ":"string "}},"baseType ":"com.linkedin.voyager.organization.Company "}}}},"included ":[{"localizedName ":"On-site ","entityUrn ":"urn:li:fs_workplaceType:1 ","$recipeTypes ":["com.linkedin.voyager.deco.jobs.shared.WebJobDetailsWorkplaceType "],"$type ":"com.linkedin.voyager.jobs.shared.WorkplaceType "},{"$recipeTypes ":["com.linkedin.voyager.deco.organization.shared.WebCompactCompany "],"url ":"https://www.linkedin.com/company/bezeq-international ","$type ":"com.linkedin.voyager.organization.Company ","entityUrn ":"urn:li:fs_normalized_company:8735 ","name ":"Bezeq International ","logo ":{"image ":{"$type ":"com.linkedin.common.VectorImage ","rootUrl ":"https://media.licdn.com/dms/image/v2/D4D0BAQGtxInbPLvk5g/company-logo_ ","artifacts ":[{"width ":200,"expiresAt ":1737590400000,"fileIdentifyingUrlPathSegment ":"200_200/company-logo_200_200/0/1719752599051/bezeq_international_logo?e =1737590400 &v =beta &t =_OojgEww23Tiv4eCWHUkVE3Fw42wC9yBPJs8lSMHxXw ","$type ":"com.linkedin.common.VectorArtifact ","height ":200},{"width ":100,"expiresAt ":1737590400000,"fileIdentifyingUrlPathSegment ":"100_100/company-logo_100_100/0/1719752599051/bezeq_international_logo?e =1737590400 &v =beta &t =bOUxQy9APK-a-RR7RE6u7nIy6GIueKZRpF26qrvYqqk ","$type ":"com.linkedin.common.VectorArtifact ","height ":100},{"width ":400,"expiresAt ":1737590400000,"fileIdentifyingUrlPathSegment ":"400_400/company-logo_400_400/0/1719752599051/bezeq_international_logo?e =1737590400 &v =beta &t =S83o6A260w-FyUuCty5ngG92WuTyxT2xB9mZiOy_O8U ","$type ":"com.linkedin.common.VectorArtifact ","height ":400}]},"type ":"SQUARE_LOGO ","$type ":"com.linkedin.voyager.organization.CompanyLogoImage "},"universalName ":"bezeq-international "}]}</code>'''
# Remove HTML tags
json_code = re.sub(r'<.*?>', '', code_string)
# Unescape HTML entities
json_code = html.unescape(json_code)
# Replace " with "
json_code = json_code.replace('"', '"')
# Load JSON data
data = json.loads(json_code)
# Print JSON data
print(data)