Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
KoDuP-Germanistik
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Noah Bubenhofer
KoDuP-Germanistik
Merge requests
!16
Fs25 fixes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fs25 fixes
fs25_fixes
into
master
Overview
0
Commits
2
Pipelines
0
Changes
2
Merged
Sonja Huber
requested to merge
fs25_fixes
into
master
2 months ago
Overview
0
Commits
2
Pipelines
0
Changes
2
Expand
adapt to trafilatura updates. xml converter now automatically detects all tags.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
6d11bbd3
2 commits,
2 months ago
2 files
+
24
−
24
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
2._Web-Crawling/scrape_websites.py
+
1
−
1
Options
@@ -46,7 +46,7 @@ def scrape_websites(file_url_list, file_output):
# das Heruntergeladene wird von trafilatura brauchbar gemacht
# Output-Format ist XML, Kommentare inkludiert, und nur Seiten auf Deutsch werden gescrapt
website_content_cleaned
=
extract
(
website_content
,
output_format
=
'
xml
'
,
include_comments
=
True
,
website_content_cleaned
=
extract
(
website_content
,
with_metadata
=
True
,
output_format
=
'
xml
'
,
include_comments
=
True
,
target_language
=
'
de
'
)
if
website_content_cleaned
is
None
:
# falls die Extraktion nicht ausgeführt werden kann
Loading