<p>从外观上看,数据不是嵌入到html中的,而是从附加的API调用中检索的:</p>
<p><a href="https://api.opap.gr/draws/v3.0/5103/last-result-and-active?status=results" rel="nofollow noreferrer">https://api.opap.gr/draws/v3.0/5103/last-result-and-active?status=results</a></p>
<p>您可以解析它来获得中奖号码:</p>
<pre><code>import requests
req = requests.get("https://api.opap.gr/draws/v3.0/5103/last-result-and-active?status=results")
data = req.json()
print(data["last"]["winningNumbers"])
</code></pre>
<p>似乎url路径是静态的,在JS中它动态地构建url,5103意味着它是<code>Lotto</code>游戏,请看<a href="https://www.opap.gr/combo?browserId=other&minifierType=&themeId=opapgrtheme_WAR_opapgrtheme&languageId=el_GR&b=7010&eu_singularlogic_opap_web_common_draw_results_INSTANCE_7ViMTivVgje2:%2Fjs%2Fmain.js&eu_singularlogic_opap_web_common_draw_results_INSTANCE_7ViMTivVgje2:%2Fjs%2Fkino.js&eu_singularlogic_opap_web_common_draw_results_INSTANCE_7ViMTivVgje2:%2Fjs%2Fpropo.js&eu_singularlogic_opap_web_common_draw_results_INSTANCE_7ViMTivVgje2:%2Fjs%2Fproto.js&eu_singularlogic_opap_web_common_draw_results_INSTANCE_7ViMTivVgje2:%2Fjs%2Flotto.js&eu_singularlogic_opap_web_commons_draw_search_portlet_DrawSearch_INSTANCE_OILJVEhcpTNg:%2Fjs%2Fmain.js&eu_singularlogic_opap_web_commons_draw_search_portlet_DrawSearch_INSTANCE_OILJVEhcpTNg:%2Fjs%2Fpropo.js&eu_singularlogic_opap_web_commons_draw_search_portlet_DrawSearch_INSTANCE_OILJVEhcpTNg:%2Fjs%2Fkino.js&t=1539892584000" rel="nofollow noreferrer">this file</a></p>