
[英]Python request to get altitude from a GeoJSON file
我想從 GeoJSON 文件中獲取線段(線串)的高程。 我正在使用這個 API: 文檔: https://api3.geo.admin.ch/services/sdiservices.html#profile 請求 URL: https://api3.geo.admin.ch/rest/servic ...
[英]Python request to get altitude from a GeoJSON file
我想從 GeoJSON 文件中獲取線段(線串)的高程。 我正在使用這個 API: 文檔: https://api3.geo.admin.ch/services/sdiservices.html#profile 請求 URL: https://api3.geo.admin.ch/rest/servic ...
[英]Python link scraper regex works when only searching for 1 extension type, but fails when matching more than one extension type
這是我用於該項目的測試鏈接: https://www.dropbox.com/sh/4cgwf2b6gk4bex4/AADtM1GDYgPDdv8QP6JdSOkba?dl=0 現在,下面的代碼僅在匹配 for.mp3 時有效(第 8 行),並按要求將純鏈接輸出到文本文件。 問題是,上面的測試鏈接不 ...
[英]Access company jira server with python-jira using certificates
我公司使用自己的多因素身份驗證登錄到我們的 jira 服務器。 我搜索的所有內容都只建議如何使用用戶名/密碼或 api-token 連接到服務器。 但我需要使用我們生成的證書來嘗試連接。 這是我到目前為止所擁有的: 當我運行此代碼時出現此錯誤: 關於如何與 go 有關的任何想法? ...
[英]Why isn't the request in nodejs sending anything to an api that is a python app?
我花了大約一個星期的時間,沒有任何運氣。 我什至使用 chatGPT 來專門創建程序,但它仍然無法正常工作,不知道為什么。 我正在嘗試將 post 請求從 nodejs 發送到 python 應用程序。 問題:兩端都沒有任何反應。 請求發生了,但即使 url 是完全正確的,它也會在一些空白中丟失。 ...
[英]Iterate over a large list with Asyncio and get url file size for each element
我在 df1['Gravação'] 列有一個 dataframe 和 287.000+ 個文件 url。 我想獲取所有文件的長度並保存到列表中 tamanho_mb = [ ] 我可以正常制作同步公式,但由於數據量非常大,我想使用asyncio使其更快。 為此的同步方法是: 我怎樣才能使用 asy ...
[英]How to check multiple sites for availability at the same time
我想編寫一個代碼來檢查使用“status_code”的站點的可用性但最后我陷入了昏迷,我不知道如何實現對輸入到小部件中的每個站點的驗證我設法只檢查一個站點來自一個小部件,但我需要檢查每一個,並為每個站點設置一個時間來檢查我想知道,或者至少獲得有關如何實施它的提示我將不勝感激任何幫助我的嘗試: ...
[英]Scrape an embedded JavaScript Game
我想從嵌入式 JavaScript 游戲中獲取信息。 我通過 selenium 導航到該網站,並根據 js 字段的 position 執行了幾次點擊。 到目前為止效果很好。 我的問題是我無法得到任何 xhr 響應。 我想將完整的響應保存為 JSON。我已經嘗試過請求但最終出現錯誤 400。我嘗試過 ...
[英]"GET" request to a login page returns status 503
我正在嘗試使用 Python 請求庫獲取https://panel.op.net.com/login 。 但是我立即收到服務器錯誤。 這是代碼:import requests headers = {'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x8 ...
[英]Python requests stream reads more data than chunk size
我正在使用 python 請求庫到 stream 來自流 API 的數據。response = requests.get('http://server/stream-forever', stream=True) for chunk in response.iter_content(chunk_siz ...
[英]Is there an error in this web-scraping script?
這個腳本有什么錯誤?from bs4 import BeautifulSoup import requests years = [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 ...
[英]What is difference between node-fetch(nodejs) and requests(python)
python 代碼得到響應,但 javascript 代碼無法得到響應。 兩者有什么區別??import fetch from 'node-fetch'; const url = "http://host3.dreamhack.games:15592/img_viewer" const imag ...
[英]Status code always returns 200 instead of 401 or 409 in python
我寫了一個 Instagram 機器人。 但有時我會遇到 http 錯誤,例如 409 或 401。為了管理這些錯誤,我嘗試在 python 中捕獲它們,但我做不到。 因為當我嘗試獲取響應代碼時,它總是給出 200,但在后台顯示 http 429。為什么會這樣? 我的代碼: ...
[英]Can't produce a result without hardcoding cookies within the headers of the following script
我正在嘗試使用請求模塊從該網頁上抓取該地址1205 Clover St, Accokeek, MD 20607的 zestimate。 當我在該網頁的輸入框中使用該地址時,我得到這個 zpid 37374749號碼,當我在參數中使用並發出發布請求時,我可以獲得 zestimate。 問題是腳本僅在我 ...
[英]How to scrape and extract data from JSON file?
我嘗試在以下站點上提取每所學校的所有數據: https://schulfinder.kultus-bw.de/ 我的代碼是這樣的:import requests from selenium import webdriver from bs4 import BeautifulSoup from r ...
[英]scrape fiba stats box score
我在 python 只是一個初學者,我想要一個我最喜歡的當地籃球隊的數據集,這就是為什么我搜索一個代碼抓取 fiba 統計框得分,我在 stackoverflow 上找到了一個,我試圖編輯標題但是它只是生成一個空的 csv 文件,想知道是否有人可以幫助我編輯下面的代碼並抓取每個團隊的 box 分數 ...
[英]AttributeError: 'NoneType' object has no attribute 'text' (USING requests AND BeautifulSoup)
我正在制作一個程序,使用請求和 BeautifulSoup 查找某個地方的溫度。每當我運行代碼時,我都會收到此錯誤: 我試過更改 class_ 部分,但它總是給出相同的錯誤。 ...
[英]How to comment on clickup with python?
我想在 clickup 中評論特定任務,但它響應 401 錯誤。 output 是: <Response [401]> 問題是什么? 我嘗試將 mozilla 標頭添加為用戶代理密鑰: 但仍然出現 401 錯誤! ...
[英]extract text from span class with bs4
我試圖從 udemy 網站上提取課程長度(來自課程內容) url: https://www.udemy.com/course/ultimate-investment-banking-course/ 所以我期待的是:1h 41m 我想這樣:res = requests.get("https://ww ...
[英]anyone please guide me how can i do web scarping multiple pages of booking.com -
url = 'https://www.booking.com/searchresults.html?label=gen173nr-1FCAEoggI46AdIM1gEaGyIAQGYATG4ARfIAQzYAQHoAQH4AQKIAgGoAgO4AuS4sJ4GwAIB0gIkYWJlYmZiM ...
[英]Can't retrieve an email from a webpage using the requests module
我正在嘗試使用請求模塊從網頁中獲取 email。 問題是,地址 email 似乎被編碼了或什么的,這就是它不可讀的原因,我希望以通常的形式對其進行解碼。 當我運行上面的腳本時,我得到以下結果: 這是我追求的結果: ...