wos:add spider
parent
3e50a7acef
commit
2bd56aeb10
@ -0,0 +1,32 @@
|
|||||||
|
class Settings:
|
||||||
|
env = "dev"
|
||||||
|
SEARCH_ROUTE = '/api/wosnx/core/runQuerySearch'
|
||||||
|
EXPORT_ROUTE = '/api/wosnx/indic/export/saveToFile'
|
||||||
|
DB_CHANGE_ELE = '//*[@id="global-select"]/div/div[@aria-label="Select database"]/div[@title="Web of Science Core Collection"]'
|
||||||
|
QUERY_INPUT_ELE = '//*[@id="advancedSearchInputArea"]'
|
||||||
|
SEARCH_BUTTON_ELE = '//button[@data-ta="run-search"]/span[@class="mat-mdc-button-touch-target"]'
|
||||||
|
|
||||||
|
EXPORT_BUTTON_ELE = '//*[@id="export-trigger-btn"]'
|
||||||
|
TABWIN_BUTTON_ELE = '//*[@id="exportToTabWinButton"]' # 制表符分割文件button
|
||||||
|
|
||||||
|
RECORD_TYPE_SELECT_ELE = '//div[@class="ng-star-inserted"]/wos-select/button[@aria-haspopup="listbox"]' # 记录内容选择框
|
||||||
|
FULL_RECORD_ELE = '//div[@id="global-select"]//div[@class="options options-menu"]/div[@title="Full Record"]' # 完整记录
|
||||||
|
FULL_RECORD_REFERENCE_ELE = '//div[@id="global-select"]//div[@class="options options-menu"]/div[@title="Full Record and Cited References"]' # 全记录与参考文献
|
||||||
|
|
||||||
|
RECORD_RANGE_ELE = '//*[@id="radio3-input"]' # 记录范围
|
||||||
|
RECORD_EXPORT_START_ELE = '//input[@name="markFrom"]'
|
||||||
|
RECORD_EXPORT_END_ELE = '//input[@name="markTo"]'
|
||||||
|
|
||||||
|
EXPORT_FILE_ELE = '//*[@id="exportButton"]'
|
||||||
|
|
||||||
|
INPUT_CONTENT = '(OG=(Anhui University of Science & Technology)) AND PY=(2025)'
|
||||||
|
|
||||||
|
|
||||||
|
class ProSettings(Settings):
|
||||||
|
DB_CHANGE = '//*[@id="global-select"]/div/div[@aria-label="Select database"]/div[@title="Web of Science 核心合集"]'
|
||||||
|
EXPORT_BUTTON_ELE = '//botton[@id="export-trigger-btn"]'
|
||||||
|
FULL_RECORD_ELE = '//div[@id="global-select"]//div[@class="options options-menu"]/div[@title="完整记录"]' # 完整记录
|
||||||
|
FULL_RECORD_REFERENCE_ELE = '//div[@id="global-select"]//div[@class="options options-menu"]/div[@title="全记录与引用的参考文献"]' # 全记录与参考文献
|
||||||
|
|
||||||
|
|
||||||
|
settings = Settings()
|
||||||
Loading…
Reference in New Issue