René's URL Explorer Experiment


Title: Did output_format='json' replace json_output=True · adbar/trafilatura · Discussion #205 · GitHub

Open Graph Title: Did output_format='json' replace json_output=True · adbar/trafilatura · Discussion #205

X Title: Did output_format='json' replace json_output=True · adbar/trafilatura · Discussion #205

Description: Did output_format='json' replace json_output=True

Open Graph Description: Python version 3.10.1 trafilatura version 1.2.1 I'm using the tutorial from: https://sempioneer.com/python-for-seo/how-to-extract-text-from-multiple-webpages-in-python/ Running the code presents th...

X Description: Python version 3.10.1 trafilatura version 1.2.1 I'm using the tutorial from: https://sempioneer.com/python-for-seo/how-to-extract-text-from-multiple-webpages-in-python/ Running the code present...

Opengraph URL: https://github.com/adbar/trafilatura/discussions/205

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"Did output_format='json' replace json_output=True","text":"\u003cp dir=\"auto\"\u003ePython version 3.10.1\u003cbr\u003e\ntrafilatura version 1.2.1\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eI'm using the tutorial from: \u003ca href=\"https://sempioneer.com/python-for-seo/how-to-extract-text-from-multiple-webpages-in-python/\" rel=\"nofollow\"\u003ehttps://sempioneer.com/python-for-seo/how-to-extract-text-from-multiple-webpages-in-python/\u003c/a\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eRunning the code presents the following error:\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ccode class=\"notranslate\"\u003eTypeError: extract() got an unexpected keyword argument 'json_output'\u003c/code\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003efrom this line of code:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"   a = trafilatura.extract(downloaded_url, json_output=True, with_metadata=True, include_comments = False,\n                            date_extraction_params={'extensive_search': True, 'original_date': True})\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode class=\"notranslate\"\u003e   a = trafilatura.extract(downloaded_url, json_output=True, with_metadata=True, include_comments = False,\n                            date_extraction_params={'extensive_search': True, 'original_date': True})\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eI appear not to be the only one experiencing this issue:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"https://solveforum.com/forums/threads/solved-typeerror-xxxxx-got-an-unexpected-keyword-argument-xxxxxx.282347/\" rel=\"nofollow\"\u003ehttps://solveforum.com/forums/threads/solved-typeerror-xxxxx-got-an-unexpected-keyword-argument-xxxxxx.282347/\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://exerror.com/typeerror-extract-got-an-unexpected-keyword-argument-json_output/\" rel=\"nofollow\"\u003ehttps://exerror.com/typeerror-extract-got-an-unexpected-keyword-argument-json_output/\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eI went to the documents to see if I could figure out what the issue is.  \u003ca href=\"https://trafilatura.readthedocs.io/en/latest/corefunctions.html?highlight=extract()#trafilatura.extract\" rel=\"nofollow\"\u003eDocumentation\u003c/a\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eFrom here I see trafilatura.extract does not have \"json_output\".  However, I do see \"output_format\".  Are these interchangeable?\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThe following seems to work:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"    a = trafilatura.extract(downloaded_url, output_format='json', with_metadata=True, include_comments = False,\n                            date_extraction_params={'extensive_search': True, 'original_date': True})\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode class=\"notranslate\"\u003e    a = trafilatura.extract(downloaded_url, output_format='json', with_metadata=True, include_comments = False,\n                            date_extraction_params={'extensive_search': True, 'original_date': True})\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eHowever I want to be sure. I don't see anything in the Github changelog referencing this.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThank you\u003c/p\u003e","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"\u003cp dir=\"auto\"\u003eHi \u003ca class=\"user-mention notranslate\" data-hovercard-type=\"user\" data-hovercard-url=\"/users/BreezySMX/hovercard\" data-octo-click=\"hovercard-link-click\" data-octo-dimensions=\"link_type:self\" href=\"https://github.com/BreezySMX\"\u003e@BreezySMX\u003c/a\u003e, thanks for your feedback!\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThese arguments are now indeed deprecated in favor of \u003ccode class=\"notranslate\"\u003eoutput_format\u003c/code\u003e but the information might not be so easy to find. I added a corresponding error in \u003ca class=\"commit-link\" data-hovercard-type=\"commit\" data-hovercard-url=\"https://github.com/adbar/trafilatura/commit/24aa207742c9d2a9317f6ce15842ef32bd891e56/hovercard\" href=\"https://github.com/adbar/trafilatura/commit/24aa207742c9d2a9317f6ce15842ef32bd891e56\"\u003e\u003ctt\u003e24aa207\u003c/tt\u003e\u003c/a\u003e.\u003c/p\u003e","upvoteCount":1,"url":"https://github.com/adbar/trafilatura/discussions/205#discussioncomment-2713668"}}}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format)
route-controllervoltron_discussions_fragments
route-actiondiscussion_layout
fetch-noncev2:65afacbc-013a-fb1f-3e98-52d1190814fc
current-catalog-service-hash9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be
request-idDC30:1A2907:CBA81:104989:6AEBC35C
html-safe-nonceeead837faac353616db5f793e9ff890f75ee3dac84aedf140e726bcaa9fced39
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzMwOjFBMjkwNzpDQkE4MToxMDQ5ODk6NkFFQkMzNUMiLCJ2aXNpdG9yX2lkIjoiMjA3MDQwMjQxNzE5MzM3MDQ2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd2bbb8c2cf007ec3c621981edfd748f7182c05a1b24d079fc44f89fc755ac23f
hovercard-subject-tagdiscussion:4051804
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/discussions_fragments/discussion_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/adbar/trafilatura/205/discussion_layout
twitter:imagehttps://opengraph.githubassets.com/2572b130a8bdb48963ae8a3f9b84061569f3d17da3043261f9f22cff3cea7649/adbar/trafilatura/discussions/205
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2572b130a8bdb48963ae8a3f9b84061569f3d17da3043261f9f22cff3cea7649/adbar/trafilatura/discussions/205
og:image:altPython version 3.10.1 trafilatura version 1.2.1 I'm using the tutorial from: https://sempioneer.com/python-for-seo/how-to-extract-text-from-multiple-webpages-in-python/ Running the code presents th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4c39b5a5177867789999269ddf5ae2221b00c4ac9fe1487d3a72e97b69db173e
turbo-cache-controlno-preview
go-importgithub.com/adbar/trafilatura git https://github.com/adbar/trafilatura.git
octolytics-dimension-user_id2125866
octolytics-dimension-user_loginadbar
octolytics-dimension-repository_id180136168
octolytics-dimension-repository_nwoadbar/trafilatura
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id180136168
octolytics-dimension-repository_network_root_nwoadbar/trafilatura
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
releasec520692f02ba50d045716bcd724a71f0fc5f7d96
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/adbar/trafilatura/discussions/205#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fadbar%2Ftrafilatura%2Fdiscussions%2F205
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fadbar%2Ftrafilatura%2Fdiscussions%2F205
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fdiscussions_fragments%2Fdiscussion_layout&source=header-repo&source_repo=adbar%2Ftrafilatura
Reloadhttps://github.com/adbar/trafilatura/discussions/205
Reloadhttps://github.com/adbar/trafilatura/discussions/205
Reloadhttps://github.com/adbar/trafilatura/discussions/205
adbarhttps://github.com/adbar
trafilaturahttps://github.com/adbar/trafilatura
Codehttps://github.com/adbar/trafilatura
Issues50 (50)https://github.com/adbar/trafilatura/issues
Pull requests22 (22)https://github.com/adbar/trafilatura/pulls
Discussionshttps://github.com/adbar/trafilatura/discussions
Actionshttps://github.com/adbar/trafilatura/actions
Security and qualityhttps://github.com/adbar/trafilatura/security
Insightshttps://github.com/adbar/trafilatura/pulse
Answered https://github.com/adbar/trafilatura/discussions/205#discussioncomment-2713668
adbarhttps://github.com/adbar
BreezySMX https://github.com/BreezySMX
Q&Ahttps://github.com/adbar/trafilatura/discussions/categories/q-a
Did output_format='json' replace json_output=True https://github.com/adbar/trafilatura/discussions/205#top
BreezySMX https://github.com/BreezySMX
Answered https://github.com/adbar/trafilatura/discussions/205#discussioncomment-2713668
adbarhttps://github.com/adbar
Return to tophttps://github.com/adbar/trafilatura/discussions/205#top
Please reload this pagehttps://github.com/adbar/trafilatura/discussions/205
https://github.com/adbar/trafilatura/discussions/205
BreezySMX https://github.com/BreezySMX
May 4, 2022 https://github.com/adbar/trafilatura/discussions/205#discussion-4051804
https://sempioneer.com/python-for-seo/how-to-extract-text-from-multiple-webpages-in-python/https://sempioneer.com/python-for-seo/how-to-extract-text-from-multiple-webpages-in-python/
https://solveforum.com/forums/threads/solved-typeerror-xxxxx-got-an-unexpected-keyword-argument-xxxxxx.282347/https://solveforum.com/forums/threads/solved-typeerror-xxxxx-got-an-unexpected-keyword-argument-xxxxxx.282347/
https://exerror.com/typeerror-extract-got-an-unexpected-keyword-argument-json_output/https://exerror.com/typeerror-extract-got-an-unexpected-keyword-argument-json_output/
Documentationhttps://trafilatura.readthedocs.io/en/latest/corefunctions.html?highlight=extract()#trafilatura.extract
adbar https://github.com/adbar
May 9, 2022 https://github.com/adbar/trafilatura/discussions/205#discussioncomment-2713668
@BreezySMXhttps://github.com/BreezySMX
24aa207https://github.com/adbar/trafilatura/commit/24aa207742c9d2a9317f6ce15842ef32bd891e56
View full answer https://github.com/adbar/trafilatura/discussions/205#discussioncomment-2713668
Oldest https://github.com/adbar/trafilatura/discussions/205?sort=old
Newest https://github.com/adbar/trafilatura/discussions/205?sort=new
Top https://github.com/adbar/trafilatura/discussions/205?sort=top
Please reload this pagehttps://github.com/adbar/trafilatura/discussions/205
https://github.com/adbar/trafilatura/discussions/205
adbar https://github.com/adbar
May 9, 2022 https://github.com/adbar/trafilatura/discussions/205#discussioncomment-2713668
@BreezySMXhttps://github.com/BreezySMX
24aa207https://github.com/adbar/trafilatura/commit/24aa207742c9d2a9317f6ce15842ef32bd891e56
adbarhttps://github.com/adbar
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fadbar%2Ftrafilatura%2Fdiscussions%2F205
🙏 Q&A https://github.com/adbar/trafilatura/discussions/categories/q-a
https://github.com/BreezySMX
https://github.com/adbar
https://github.com/adbar/trafilatura/discussions/205
https://github.com/settings/replies?return_to=1
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.