Skip to content

Commit

Permalink
Changed headless browsing option.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbartlau committed Apr 18, 2024
1 parent cb1819f commit cad8d88
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions sitemap_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def generate_sitemap(start_url, target_name):
# Configure Selenium to use Chrome in headless mode
options = Options()
options.headless = True
options.add_argument("--headless=new")
driver = webdriver.Chrome(options=options)

try:
Expand Down Expand Up @@ -137,15 +138,15 @@ def generate_sitemap(start_url, target_name):
driver.quit()

#DE
generate_sitemap('https://docu.combit.net/designer/de/', '.\\input_de\\sitemap_designer.xml')
generate_sitemap('https://docu.combit.net/adhocdesigner/de/', '.\\input_de\\sitemap_adhoc.xml')
generate_sitemap('https://docu.combit.net/reportserver/de/', '.\\input_de\\sitemap_reportserver.xml')
generate_sitemap('https://docu.combit.net/progref/de/', '.\\input_de\\sitemap_progref.xml')
#generate_sitemap('https://docu.combit.net/designer/de/', '.\\input_de\\sitemap_designer.xml')
#generate_sitemap('https://docu.combit.net/adhocdesigner/de/', '.\\input_de\\sitemap_adhoc.xml')
#generate_sitemap('https://docu.combit.net/reportserver/de/', '.\\input_de\\sitemap_reportserver.xml')
#generate_sitemap('https://docu.combit.net/progref/de/', '.\\input_de\\sitemap_progref.xml')
generate_sitemap('https://docu.combit.net/net/de/', '.\\input_de\\sitemap_net.xml')

#EN
generate_sitemap('https://docu.combit.net/net/en/', '.\\input_en\\sitemap_net.xml')
generate_sitemap('https://docu.combit.net/designer/en/', '.\\input_en\\sitemap_designer.xml')
generate_sitemap('https://docu.combit.net/reportserver/en/', '.\\input_en\\sitemap_reportserver.xml')
generate_sitemap('https://docu.combit.net/progref/en/', '.\\input_en\\sitemap_progref.xml')
generate_sitemap('https://docu.combit.net/adhocdesigner/en/', '.\\input_en\\sitemap_adhoc.xml')
#generate_sitemap('https://docu.combit.net/net/en/', '.\\input_en\\sitemap_net.xml')
#generate_sitemap('https://docu.combit.net/designer/en/', '.\\input_en\\sitemap_designer.xml')
#generate_sitemap('https://docu.combit.net/reportserver/en/', '.\\input_en\\sitemap_reportserver.xml')
#generate_sitemap('https://docu.combit.net/progref/en/', '.\\input_en\\sitemap_progref.xml')
#generate_sitemap('https://docu.combit.net/adhocdesigner/en/', '.\\input_en\\sitemap_adhoc.xml')

0 comments on commit cad8d88

Please sign in to comment.