Arafath10 commited on
Commit
cf0dcbd
·
verified ·
1 Parent(s): 2ab6c3b

Update user_guide_sync.py

Browse files
Files changed (1) hide show
  1. user_guide_sync.py +5 -2
user_guide_sync.py CHANGED
@@ -22,8 +22,9 @@ def get_web_data(valid_links):
22
  section_text = section.get_text().strip()
23
  section_text = section_text + f"\nmore detail link : {url}"
24
 
25
- file = open(f"{title}.txt","w")
26
  file.write(f"{title}\n{section_text}")
 
27
 
28
 
29
  def get_base_links():
@@ -45,4 +46,6 @@ def get_base_links():
45
  get_web_data(valid_links)
46
 
47
  return "data updated"
48
-
 
 
 
22
  section_text = section.get_text().strip()
23
  section_text = section_text + f"\nmore detail link : {url}"
24
 
25
+ file = open(f"user_guide/{title}.txt","w")
26
  file.write(f"{title}\n{section_text}")
27
+ file.close()
28
 
29
 
30
  def get_base_links():
 
46
  get_web_data(valid_links)
47
 
48
  return "data updated"
49
+
50
+ def update_user_guide():
51
+ get_base_links()