René's URL Explorer Experiment


Title: GitHub · Where software is built

Open Graph Title: python-openxml/python-docx

X Title: python-openxml/python-docx

Description: Create and modify Word documents with Python. Contribute to python-openxml/python-docx development by creating an account on GitHub.

Open Graph Description: Create and modify Word documents with Python. Contribute to python-openxml/python-docx development by creating an account on GitHub.

X Description: Create and modify Word documents with Python. Contribute to python-openxml/python-docx development by creating an account on GitHub.

Opengraph URL: https://github.com/python-openxml/python-docx

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature Request: Add Hyperlinks With Multiple Runs","articleBody":"I need to be able to add hyperlinks with multiple runs to paragraphs. Right now I am able to achieve this like so:\n```\nfrom docx.oxml.shared import OxmlElement, qn\nfrom docx.opc.constants import RELATIONSHIP_TYPE\nfrom docx import Document\nfrom docx.text.run import Run\nfrom docx.shared import RGBColor\n\ndef add_hyperlink(paragraph, address, runs):\n    # Access the document.xml.rels file and get a new relationship type ID\n    part = paragraph.part\n    r_id = part.relate_to(address, RELATIONSHIP_TYPE.HYPERLINK, is_external=True)\n\n    # Create the w:hyperlink tag and add needed properties\n    HYPERLINK_TAG = 'w:hyperlink'\n    RELATIONSHIP_TYPE_ID_PROPERTY = 'r:id'\n    hyperlink = OxmlElement(HYPERLINK_TAG)\n    hyperlink.set(qn(RELATIONSHIP_TYPE_ID_PROPERTY), r_id)\n\n    for run in runs:\n        hyperlink.append(run)\n\n    paragraph._p.append(hyperlink)\n    return hyperlink\n\nRUN_TAG = 'w:r'\nPROPERTIES_TAG = 'w:rPr'\ndocument = Document()\nparagraph = document.add_paragraph()\n\nr1 = OxmlElement(RUN_TAG)\nrPr1 = OxmlElement(PROPERTIES_TAG)\nr1.append(rPr1)\nr1.text = 'Google '\nrun1 = Run(r1, paragraph)\nrun1.underline = True\nrun1.bold = True\nrun1.font.color.rgb = RGBColor(255, 0, 0)\n\nr2 = OxmlElement(RUN_TAG)\nrPr2 = OxmlElement(PROPERTIES_TAG)\nr2.append(rPr2)\nr2.text = 'dot com'\nrun2 = Run(r2, paragraph)\nrun2.underline = True\nrun2.italic = True\nrun2.font.color.rgb = RGBColor(0, 255, 0)\n\nadd_hyperlink(paragraph, 'https://google.com', [run1._r, run2._r])\ndocument.save('new.docx')\n```\nand this produces a hyperlink that looks like this:\n\n\u003cimg width=\"361\" height=\"99\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/735be24b-2949-4847-8e6d-68627326434a\" /\u003e\n\nWould it be possible to extend the API to support adding hyperlinks with different runs? Since hyperlinks are containers for runs, similar to paragraphs, I would imagine the API would look similar to the API for paragraphs. I.e. you can add a hyperlink with text directly:\n```\nhyperlink = paragraph.add_hyperlink('https://google.com', 'Google dot com')\n```\nYou can change the text and address post-factum:\n```\nhyperlink.text = 'Google.com'\nhyperlink.address = 'https://www.google.com'\n```\nOr you can fill the hyperlink incrementally with runs:\n```\nhyperlink = paragraph.add_hyperlink('https://google.com')\nhyperlink.add_run('Google ').bold = True\nhyperlink.add_run('dot com').italic= True\n```\n\nIt would be nice to have this functionality in the API by default. I can try to add it if you tell me what you'd like the API to look like. Thanks in advance!\n","author":{"url":"https://github.com/ptoshkov","@type":"Person","name":"ptoshkov"},"datePublished":"2025-08-31T17:12:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1515/python-docx/issues/1515"}

route-pattern/:user_id/:repository/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:c5a925d3-fc04-25f4-9b49-17c6a8e4abb8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id85FA:3AD8E1:C3BE3F:1034274:69716BAA
html-safe-nonce93a55436761407594bb814958843db1ded4f81274b31329a7d573b6b3085e04f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUZBOjNBRDhFMTpDM0JFM0Y6MTAzNDI3NDo2OTcxNkJBQSIsInZpc2l0b3JfaWQiOiI5NzM5NzU3ODcwOTE4ODA4NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf033d1f5fb5f8452cdaeeceff69f6f11b28e00654e448fdf1cce57963b958a97
hovercard-subject-tagrepository:13592924
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python-openxml/python-docx/issues/1515
twitter:imagehttps://opengraph.githubassets.com/f2d329a0f7c9f32518a4a67a5f258660f1f5b118668ce5fa4cd2d914e65005fd/python-openxml/python-docx
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f2d329a0f7c9f32518a4a67a5f258660f1f5b118668ce5fa4cd2d914e65005fd/python-openxml/python-docx
og:image:altCreate and modify Word documents with Python. Contribute to python-openxml/python-docx development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None353479110ec1e87d687013548f216c852055ec907d09d2fb6a180cb5ed9d28e1
turbo-cache-controlno-cache
go-importgithub.com/python-openxml/python-docx git https://github.com/python-openxml/python-docx.git
octolytics-dimension-user_id3403760
octolytics-dimension-user_loginpython-openxml
octolytics-dimension-repository_id13592924
octolytics-dimension-repository_nwopython-openxml/python-docx
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id13592924
octolytics-dimension-repository_network_root_nwopython-openxml/python-docx
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea4c7e274c03a115b82dcef6c47ce3f7f903e88e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python-openxml/python-docx/issues/1515#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-openxml%2Fpython-docx%2Fissues%2F1515
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-openxml%2Fpython-docx%2Fissues%2F1515
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=python-openxml%2Fpython-docx
Reloadhttps://patch-diff.githubusercontent.com/python-openxml/python-docx/issues/1515
Reloadhttps://patch-diff.githubusercontent.com/python-openxml/python-docx/issues/1515
Reloadhttps://patch-diff.githubusercontent.com/python-openxml/python-docx/issues/1515
python-openxml https://patch-diff.githubusercontent.com/python-openxml
python-docxhttps://patch-diff.githubusercontent.com/python-openxml/python-docx
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-openxml%2Fpython-docx
Fork 1.3k https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-openxml%2Fpython-docx
Star 5.4k https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-openxml%2Fpython-docx
Code https://patch-diff.githubusercontent.com/python-openxml/python-docx
Issues 577 https://patch-diff.githubusercontent.com/python-openxml/python-docx/issues
Pull requests 124 https://patch-diff.githubusercontent.com/python-openxml/python-docx/pulls
Actions https://patch-diff.githubusercontent.com/python-openxml/python-docx/actions
Projects 0 https://patch-diff.githubusercontent.com/python-openxml/python-docx/projects
Wiki https://patch-diff.githubusercontent.com/python-openxml/python-docx/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/python-openxml/python-docx/security
Please reload this pagehttps://patch-diff.githubusercontent.com/python-openxml/python-docx/issues/1515
Insights https://patch-diff.githubusercontent.com/python-openxml/python-docx/pulse
Code https://patch-diff.githubusercontent.com/python-openxml/python-docx
Issues https://patch-diff.githubusercontent.com/python-openxml/python-docx/issues
Pull requests https://patch-diff.githubusercontent.com/python-openxml/python-docx/pulls
Actions https://patch-diff.githubusercontent.com/python-openxml/python-docx/actions
Projects https://patch-diff.githubusercontent.com/python-openxml/python-docx/projects
Wiki https://patch-diff.githubusercontent.com/python-openxml/python-docx/wiki
Security https://patch-diff.githubusercontent.com/python-openxml/python-docx/security
Insights https://patch-diff.githubusercontent.com/python-openxml/python-docx/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/python-openxml/python-docx/issues/1515
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/python-openxml/python-docx/issues/1515
Feature Request: Add Hyperlinks With Multiple Runshttps://patch-diff.githubusercontent.com/python-openxml/python-docx/issues/1515#top
https://github.com/ptoshkov
https://github.com/ptoshkov
ptoshkovhttps://github.com/ptoshkov
on Aug 31, 2025https://github.com/python-openxml/python-docx/issues/1515#issue-3370504053
https://private-user-images.githubusercontent.com/55318963/483981192-735be24b-2949-4847-8e6d-68627326434a.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjkwNDExMTAsIm5iZiI6MTc2OTA0MDgxMCwicGF0aCI6Ii81NTMxODk2My80ODM5ODExOTItNzM1YmUyNGItMjk0OS00ODQ3LThlNmQtNjg2MjczMjY0MzRhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTIyVDAwMTMzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWViYzdjYmM4MWJiYmZmYmE4NmRiOGRmMzBmYzQ2MmU1MDYzMzkxYTc2MjVkMGUwZDg5MjBmODI3MThlNDc4YmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.mDAk8acGVbpKF9O2GQBpQZMNlNqK91Spvdae4TZ1Src
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.