[英]automatic post data from other web to odoo
我必須使用python從其他網站獲取數據並將其發布到odoo
,這可能嗎?
我已經嘗試過像odoo
文檔一樣在python中創建記錄,但是我認為它不能自動進行,我的目標是將數據從該網站自動發布到odoo
,但是我的問題是我不知道如何將數據發布到odoo
自動,請幫幫我
硒可以幫助您
Selenium是自動化的瀏覽器,支持Internet Explorer,Chrome,Firefox等
您可以發送鍵和單擊按鈕,以及其他所有內容。
odoo登錄示例:
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
driver = webdriver.Chrome('chromedriver.exe')
driver.find_element_by_xpath('//*[@id="wrapwrap"]/header/div/div/div/a').click() // click the SIGN IN button
WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.XPATH, //*[@id="login"]))) // wait the login page
driver.find_element_by_xpath('//*[@id="login"]').send_keys('your id') // send your id the web
driver.find_element_by_xpath('//*[@id="password"]').send_keys('your pw') // send your pw the web
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.