softhauzpy 0.0.9__tar.gz → 0.0.91__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: softhauzpy
3
- Version: 0.0.9
3
+ Version: 0.0.91
4
4
  Summary: is a comprehensive Python toolkit built for developers creating intelligent, data-driven web applications. It provides a powerful suite of web utilities including web scraping tools, crawling systems, content extraction pipelines, and search engine components that help developers build fully customizable in-house website search solutions.
5
5
  Home-page: https://softhauz.ca
6
6
  Author: Karen Urate
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as f:
5
5
 
6
6
  setup(
7
7
  name='softhauzpy',
8
- version='0.0.9',
8
+ version='0.0.91',
9
9
  author='Karen Urate',
10
10
  author_email='karen.urate@softhauz.ca',
11
11
  packages=find_packages(),
@@ -223,16 +223,20 @@ def get_search_results_list(page_list=[], keywords='') -> list:
223
223
 
224
224
  if len(url) == 0 or len(url) < 1:
225
225
  continue
226
-
226
+
227
227
  title = page[1] or ''
228
228
  author = page[2] or ''
229
229
  description = page[3] or ''
230
230
  creation_date = page[4] or ''
231
231
  modified_date = page[5] or ''
232
- assigned_location = page[6] or ''
232
+ assigned_location = page[6] if len(page[6])>3 else ''
233
233
 
234
234
  if keywords in (extract_pure_text(url, title=title, author=author, description=description, creation_date=creation_date, modified_date=modified_date, assigned_location=assigned_location)["content"]).lower():
235
- results.append((url, title, author, description, creation_date, modified_date))
235
+
236
+ if detect_input_type(url) != "url":
237
+ results.append((assigned_location, title, author, description, creation_date, modified_date))
238
+ else:
239
+ results.append((url, title, author, description, creation_date, modified_date))
236
240
 
237
241
  return results
238
242
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: softhauzpy
3
- Version: 0.0.9
3
+ Version: 0.0.91
4
4
  Summary: is a comprehensive Python toolkit built for developers creating intelligent, data-driven web applications. It provides a powerful suite of web utilities including web scraping tools, crawling systems, content extraction pipelines, and search engine components that help developers build fully customizable in-house website search solutions.
5
5
  Home-page: https://softhauz.ca
6
6
  Author: Karen Urate
File without changes
File without changes