• 请不要在回答技术问题时复制粘贴 AI 生成的内容
tail2
V2EX  ›  程序员

爬虫可以爬取运行在虚拟机上的 javaweb 网页吗?

  •  
  •   tail2 · May 2, 2019 · 3457 views
    This topic created in 2743 days ago, the information mentioned may be changed or developed.

    我在本机 windows 上写一个爬虫, 可以爬取此时运行在虚拟机上的 javaweb 程序的网页吗?

    假设虚拟机 ip 地址是 192.168.136.109 , 爬虫的网址怎么写?

    求大佬指教。

    6 replies  •  2019-05-02 12:47:52 +08:00
    lanpong
    lanpong
    May 2, 2019 via iPhone
    1
    - 把网页映射到内网。
    - 填写 ip 即可。
    LeonKennedy
    LeonKennedy
    May 2, 2019
    2
    你在 windows 能访问到虚拟机里的网页就可以怕,地址就写你访问到的那个地址
    zxcvsh
    zxcvsh
    May 2, 2019 via iPhone
    3
    只要能请求到的就可以爬吧
    tail2
    tail2
    OP
    May 2, 2019 via Android
    4
    @LeonKennedy 好的, 多谢
    tail2
    tail2
    OP
    May 2, 2019 via Android
    5
    @lanpong 多谢指点
    tail2
    tail2
    OP
    May 2, 2019 via Android
    6
    @zxcvsh 好的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1296 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 20:35 · PVG 04:35 · LAX 12:35 · JFK 15:35
    ♥ Do have faith in what you're doing.