how to get data in web to text file - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Programming
Click Here to Login
Reply
 
Thread Tools Display Modes
 
Old 03-14-2019, 09:13 AM   #1 (permalink)
Newb Techie
 
Join Date: Mar 2019
Location: Hong Kong
Posts: 4
Default how to get data in web to text file

for example:
below address: https://cplus.hit.com.hk/enquiry/vesselScheduleEntryAction.do

I have 10 vessel want to know the schedule and input the time to text file ,how to start...

thanks brother
__________________

__________________
yimchiwai1983 is offline   Reply With Quote
Old 03-18-2019, 08:43 AM   #2 (permalink)
Private Joker
 
carnageX's Avatar
 
Join Date: Feb 2007
Location: South Dakota
Posts: 24,793
Default Re: how to get data in web to text file

What programming language(s) are you comfortable in?

Didn't visit the link as I'm at work - but if the data is coming back on the page, then you'd just need to issue an HTTP request in whatever language you know, and then parse the results into some data object, and then output that to whatever format you wanted.
__________________

__________________
Laptop: MSI GT70 2OC-059us | i7-4700MQ | 16GB | GTX 770m | 500GB SSD / 750GB HDD | 17.3" | Win10 Pro
Desktop: 4690k | 12GB g.Skill RipJaws | GTX 970 | 520hx | Z87X-UD4H | Corsair Vengeance C70 | Corsair H110 | Acer 25" | Acer 22" | Win10
Mobile: Google Pixel XL


If I help you, or you just like what I said, rep me by clicking the under my post
carnageX is offline   Reply With Quote
Old 03-18-2019, 10:24 AM   #3 (permalink)
Newb Techie
 
Join Date: Mar 2019
Location: Hong Kong
Posts: 4
Default Re: how to get data in web to text file

if I want use excel
A1 is vessel name and B1 is ref this web ETA
__________________
yimchiwai1983 is offline   Reply With Quote
Old 03-18-2019, 11:25 AM   #4 (permalink)
Newb Techie
 
U.F.O.'s Avatar
 
Join Date: Mar 2019
Location: USA
Posts: 14
Default Re: how to get data in web to text file

pretty sure wget can do that if i understand you correctly
__________________
U.F.O. is offline   Reply With Quote
Old 03-18-2019, 11:29 AM   #5 (permalink)
Newb Techie
 
Join Date: Mar 2019
Location: Hong Kong
Posts: 4
Default Re: how to get data in web to text file

brother ,can you provide the example to me...

cause I am a beginner....don't know how to start....
__________________
yimchiwai1983 is offline   Reply With Quote
Old 03-18-2019, 11:39 AM   #6 (permalink)
Newb Techie
 
U.F.O.'s Avatar
 
Join Date: Mar 2019
Location: USA
Posts: 14
Default Re: how to get data in web to text file

idk i am no expert myself.


seems to me if you input one vessel, you can look at the get method and requests in any web browser, press f12 and go to network tab in firefox.
__________________
U.F.O. is offline   Reply With Quote
Old 03-18-2019, 11:43 AM   #7 (permalink)
Newb Techie
 
Join Date: Mar 2019
Location: Hong Kong
Posts: 4
Default Re: how to get data in web to text file

this web can use get function ?

https://cplus.hit.com.hk/enquiry/vesselScheduleEntryAction.do
__________________
yimchiwai1983 is offline   Reply With Quote
Old 03-18-2019, 04:38 PM   #8 (permalink)
 
iFargle's Avatar
 
Join Date: Jan 2009
Location: N/A
Posts: 4,244
Default Re: how to get data in web to text file

Python + BeautifulSoup = <3
__________________

__________________

- iFargle.com -
Desktop || 7700k • 32GB RAM • 512GB 960 Pro • GTX 1080 • NCase M1 • Ubuntu 18.04
Laptop || 2018 15" MacBook Pro • 16GB RAM • 256GB SSD • Radeon Pro 555X • Mac OS
128GB OnePlus 6 || 64GB iPad Air 2 • Battle.net: iFargle #1561 || Steam: iFargle
iFargle is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Read a text file and return value if specified text is found VB .Net 2008 QuaziBee Programming 1 11-14-2011 12:58 PM
Remove Unneeded Text With Text Trimmer Osiris Tips, Tricks & Tutorials 0 11-05-2008 07:20 AM
converting convert a "compiled html" file to a normal html file or a text file rookie1010 Internet Software and Browsers 1 07-12-2006 09:32 PM
How to recover text from any files by using the "Recover Text from Any File" converte Osiris Tips, Tricks & Tutorials 0 06-20-2006 07:24 AM
Write all values from a listbox or file listbox to a text file gecko_au2003 Programming 3 08-21-2004 02:08 PM



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 06:58 PM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2019, vBulletin Solutions, Inc.