Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to get data in web
#1
import requests
import urllib.request
from bs4 import BeautifulSoup
from flask import Flask

with requests.session()as c:
    url="https://cplus.hit.com.hk/enquiry/vesselScheduleEnquiryAction.do"
    vesselName='WAN+HAI+102'
    ETBFrom='29-03-2019'
    ETBTo='11-04-2019'
    query='%E6%90%9C%E7%B4%A2'
    c.get(url)


    new_url = url+"?vesselName="+vesselName+"&ETBFrom="+ETBFrom+"&ETBTo="+ETBTo+"&query="+query

    print(new_url)

    r = urllib.request.urlopen(new_url)
    soup = BeautifulSoup(r,"html.parser")
i am a beginner ,brother can you help ,next step what can i can to get data belew web
https://cplus.hit.com.hk/enquiry/vesselS...C%E7%B4%A2
Reply


Messages In This Thread
how to get data in web - by yimchiwai - Mar-29-2019, 08:41 AM
RE: how to get data in web - by nilamo - Mar-29-2019, 03:42 PM
RE: how to get data in web - by snippsat - Mar-29-2019, 04:29 PM
RE: how to get data in web - by yimchiwai - Mar-29-2019, 04:47 PM
RE: how to get data in web - by snippsat - Mar-29-2019, 06:07 PM
RE: how to get data in web - by yimchiwai - Mar-29-2019, 06:29 PM
RE: how to get data in web - by snippsat - Mar-29-2019, 11:10 PM
RE: how to get data in web - by yimchiwai - Mar-30-2019, 05:06 AM
RE: how to get data in web - by snippsat - Mar-30-2019, 07:37 AM
RE: how to get data in web - by yimchiwai - Mar-30-2019, 11:59 AM
RE: how to get data in web - by snippsat - Mar-30-2019, 02:02 PM
RE: how to get data in web - by yimchiwai - Mar-31-2019, 11:35 AM
RE: how to get data in web - by yimchiwai - Apr-04-2019, 07:26 AM
RE: how to get data in web - by yimchiwai - Apr-04-2019, 12:04 PM
RE: how to get data in web - by snippsat - Apr-04-2019, 07:00 PM
RE: how to get data in web - by yimchiwai - Apr-05-2019, 12:24 AM
RE: how to get data in web - by snippsat - Apr-05-2019, 11:23 AM
RE: how to get data in web - by yimchiwai - Apr-05-2019, 04:53 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020