International marine transportation logistics order method and system with automatic tracking and early warning functions, and medium
By automatically acquiring and analyzing the maritime logistics information of international shipping logistics orders, the problem of insufficient response speed and low collection efficiency is solved, and the timely, accurate and reliable acquisition of data is achieved, abnormal situations are monitored in a timely manner, and business plans are deployed in advance.
Patent Information
- Application Number
- CN202410758964.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-10-15
AI Technical Summary
Insufficient response speed, low collection efficiency and poor accuracy of international shipping logistics order information lead to problems of reduced efficiency and data inconsistency.
By obtaining the shipping company name and bill of lading number data of international shipping logistics orders, the corresponding thread is created to automatically capture the shipping logistics information and perform early warning analysis, including determining abnormal conditions of departure and arrival times, marking and reflecting them in the table data.
It realizes automated tracking and early warning analysis, improves the timeliness, accuracy and reliability of data acquisition, reduces dependence on human resources, monitors abnormal situations in a timely manner, and deploys business plans in advance.
Smart Images

Figure CN118779387A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of international ocean shipping logistics orders, and in particular to an international ocean shipping logistics order automatic tracking and early warning method, system and medium. Background Art
[0002] In the context of a globalized economy, the demand for cross-border maritime logistics is not only growing, but also becoming more complex. With the expansion of the global trade system and the rise of e-commerce, businesses and consumers expect faster and more reliable international maritime cargo transportation services. These expectations have driven the development of logistics and supply chain management technologies, but have also brought new challenges.
[0003] At present, international shipping logistics relies on multiple parties, including freight forwarders, shipping companies, warehousing service providers and customs agents. Each participant may use different systems to record and track the status of goods, which makes it difficult to unify information, increase the complexity of management and the risk of inconsistent data. For example, a simple cross-border transportation project may involve up to a dozen different organizations, from primary suppliers to final retailers. Each link needs to rely on manual operations to have an independent recording and tracking system. Due to time differences and different working cultures, cross-border communication may further delay the update of information. This leads not only to low efficiency, but also to the accuracy of data that is easily affected by human errors. And because the response to emergencies such as weather changes, tariff adjustments or political events is usually not fast enough, this may lead to a decline in the efficiency of the entire supply chain and even affect end consumers.
[0004] As a result, current international shipping logistics order information faces problems such as insufficient response speed, low collection efficiency and accuracy. Summary of the invention
[0005] In view of the problems existing in the prior art, the present invention provides a method, system and medium for automatic tracking and early warning of international shipping logistics orders, so as to solve the technical problems faced by the current international shipping logistics order information in the prior art, namely, insufficient response speed, low collection efficiency and accuracy.
[0006] The present invention provides an international ocean logistics order method for automatic tracking and early warning, comprising:
[0007] S1. Obtain the shipping company name and bill of lading number data of international shipping logistics orders, and create table data;
[0008] S2. Create a corresponding thread for the shipping company name and bill of lading number data;
[0009] S3, capturing the current shipping logistics information corresponding to the shipping company name and bill of lading number according to the corresponding thread interval;
[0010] S4. Perform early warning analysis based on the maritime logistics information.
[0011] Optionally, the ocean shipping logistics information includes:
[0012] At least the origin OCITY, destination DCITY, estimated departure time ETD, actual departure time ATD, estimated arrival time ETA, actual arrival time ATA, current ship position POSITION, ship name and voyage number VESSEL are captured as the shipping logistics information, and the shipping logistics information is automatically filled into the table data.
[0013] Optionally, performing early warning analysis based on the maritime logistics information includes:
[0014] S401, traverse the table data, query whether the ship corresponding to the bill of lading number data has departed, if not, calculate the difference between the current estimated departure time ETD and the estimated departure time FETD obtained by the first query of the bill of lading number data, expressed as:
[0015] EDAYS=ETD-FETD
[0016] And determine whether EDAYS is greater than 7. If so, mark the table data as triggering an exception, otherwise, do nothing.
[0017] Optionally, performing early warning analysis according to the maritime logistics information further includes:
[0018] S402, traverse the table data to check whether the vessel corresponding to the bill of lading number data has arrived at the port. If it has not arrived at the port, calculate the difference between the estimated arrival time ETA and the current time TIMENOW, expressed as:
[0019] LDAYS=ETA-TIMENOW
[0020] And determine whether the LDAYS is greater than 7. If it is, mark the table data as arriving abnormally, otherwise do not react.
[0021] Optionally, performing early warning analysis according to the maritime logistics information further includes:
[0022] S403, traverse the table data, query whether the ship corresponding to the bill of lading number data has arrived at the port, if not, calculate the difference between the estimated arrival time ETA, the actual departure time ATD and the average arrival days AVEDAYod from the origin to the destination, expressed as:
[0023] AVETDAYS=ETA-ATD-AVEDAYod
[0024] And determine whether the AVETDAYS is greater than 7. If it is, mark the table data as arrival exception, otherwise do not respond.
[0025] The present invention also provides an international ocean shipping logistics order system with automatic tracking and early warning, comprising:
[0026] The order collection module obtains the shipping company name and bill of lading number data of international shipping logistics orders and creates table data;
[0027] A thread creation module, creating a thread corresponding to the shipping company name and bill of lading number data;
[0028] The information tracking module captures the shipping company name and bill of lading number according to the corresponding thread interval to capture the corresponding current shipping logistics information;
[0029] The information warning module performs warning analysis based on the maritime logistics information.
[0030] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of any of the aforementioned methods when executed by a processor.
[0031] Compared with the existing spectral library construction technology, the present invention has the following beneficial effects:
[0032] By obtaining the shipping company name and bill of lading number data of international shipping logistics orders, a corresponding thread based on the shipping company name and bill of lading number data is created, and based on the corresponding thread, the corresponding shipping logistics information is automatically tracked and captured, and the shipping logistics information is analyzed for early warning analysis. The method based on automated tracking of order information avoids the inefficiency of traditional manual data query, and no longer relies on asking agents to obtain data, liberating human resources and enhancing the timeliness, accuracy and reliability of data acquisition. In addition, based on automated tracking of order information, data analysis and data early warning can be provided in a timely and effective manner, and abnormal issuance and arrival data can be monitored in a timely manner, and business plans can be deployed in advance for orders that are about to arrive. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0035] Figure 1 It is a schematic diagram of the method flow of the present invention. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other implementation cases obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application. The functional units with the same labels in the examples of the present invention have the same and similar structures and functions.
[0037] See also Figure 1 The present invention provides an international shipping logistics order method for automatic tracking and early warning, comprising:
[0038] S1. Obtain the shipping company name and bill of lading number data of international shipping logistics orders, and create table data;
[0039] S2. Create a corresponding thread for the shipping company name and bill of lading number data;
[0040] S3, capturing the current shipping logistics information corresponding to the shipping company name and bill of lading number according to the corresponding thread interval;
[0041] S4. Perform early warning analysis based on the maritime logistics information.
[0042] In this embodiment, S1, obtain the shipping company name and bill of lading number data of the international shipping logistics order, and create table data.
[0043] First, extract the shipping company name and bill of lading number data from the order tracking table, write the extracted shipping company name and bill of lading number into the template table, and make a template excel table as follows:
[0044]
[0045] S2. Create a corresponding thread for the shipping company name and bill of lading number data.
[0046] Create corresponding threads from the template table according to the shipping company name and bill of lading number data, specifically:
[0047] (1) From the template table, classify the shipping companies into multiple df_sub, df_sub = df[df['shipping company'].str.upper() == ship_company.upper()], where df is the uploaded template table and ship_company is the name of the shipping company.
[0048] (2) A loop is constructed based on Util.shipArry. Each loop corresponds to a thread of a shipping company that can be queried. When a shipping company is in Util.shipArry (a collection of queriable shipping companies), a thread is started to query the corresponding df_sub data.
[0049] (3) Billno(shipA) represents the order number of shipping company A. To query n order numbers, we need to use billno(shipA)*n. Therefore, the set of orders to be queried for a shipping company is shipA = {Billno1, Billno2, ...}, i.e., df_sub; the corresponding orders to be queried are represented by R = {shipA, shipB, ...}.
[0050] (4) For shipA, according to the corresponding website of the shipping company, use the request to simulate the browser to query the order Billno data. After obtaining the response, parse the data and extract information such as the origin OCITY, destination DCITY, estimated departure time ETD, actual departure time ATD, estimated arrival time ETA, actual arrival time ATA, current ship position POSITION, ship name and voyage number VESSEL.
[0051] (5) Write the acquired data back to the template table and database.
[0052] (6) Wait for all threads to end.
[0053] S3. Capture the shipping company name and bill of lading number according to the corresponding thread interval to obtain the corresponding current shipping logistics information.
[0054] Use crawlers to capture shipping logistics information, specifically:
[0055] 1) Some websites are not encrypted. Use Google Chrome to enter debug mode, copy the request information of the website, and build the header and payload to simulate the access request. The request header parameter Header is the information sent to the server in the HTTP request to help the server understand the source, content, preferences, etc. of the request. The Header parameter is explained as follows:
[0056] User-Agent: tells the server which browser the request was sent from. In a crawler, setting this value to the value of some browsers can disguise the crawler to avoid being identified by websites with anti-crawler mechanisms.
[0057] Referer: Indicates which URL the current request came from, and is often used in anti-crawler technology.
[0058] Cookie: used to identify users, especially in websites that require login. The HTTP protocol is stateless, and cookies help the server identify multiple requests from the same user.
[0059] Accept: Specifies the content type that the client can receive, such as `text / plain`, `text / html`, `application / json`.
[0060] Accept-Charset: declares the character encoding set that the browser can accept, such as `iso-8859-5`.
[0061] Accept-Encoding: Specifies the compression encoding type of content returned by the web server that the browser can support, such as `compress`, `gzip`.
[0062] Accept-Language: declares the language that the browser can accept, which is different from the character set. For example, Chinese has multiple character sets such as `big5`, `gb2312`, `gbk`, etc.
[0063] Authorization: When the client receives a WWW-Authenticate response from a web server, it responds to the web server with its own authentication information.
[0064] Cache-Control: controls cache behavior, such as `no-cache`, `max-age`, `max-stale`, `min-fresh`, etc.
[0065] Connection: controls the behavior of the connection, such as `close` means closing the connection after completing the request, and `keepalive` means keeping the connection to wait for subsequent requests.
[0066] 2) The website has request header encryption, such as X-Csrf-Token, Authorization, etc. If the above encrypted fields appear, you need to extract the corresponding encrypted fields from the website corresponding to the Referer, or locate the interface position that returns encrypted data according to the debugging mode, first simulate the request to obtain data from the interface, and then request the data of the order number.
[0067] 3) The website has encrypted cookies. You can try to visit the website corresponding to the Referer first and get the cookies back through response.cookies. When some websites return that cookies are unavailable through the above method, use the DrissionPage package to build an automated testing environment and get the cookies through response.cookies to access it.
[0068] 4) For payload encryption, use the debugging mode, combined with js reverse analysis, breakpoint debugging and other technologies, locate the encryption position, parse the payload encryption algorithm, and use python code locally to simulate the js algorithm to crack and obtain data.
[0069] Finally, the acquired data is parsed using JSON, BeautifulSoup and other parsing techniques to extract key data and write it back to the template table and database.
[0070] Wait for all threads to finish.
[0071] S4. Perform early warning analysis based on the maritime logistics information.
[0072] Traverse the table data to check whether the ship corresponding to the bill of lading number data has departed. If it has not departed, calculate the difference between the current estimated departure time ETD and the estimated departure time FETD obtained by the first query of the bill of lading number data, expressed as:
[0073] EDAYS=ETD-FETD
[0074] And determine whether EDAYS is greater than 7. If it is greater, mark the table data as abnormal. Otherwise, do not react and obtain it according to the historical data in MySQL.
[0075] Continue to traverse the table data to check whether the ship corresponding to the bill of lading number data has arrived at the port. If it has not arrived at the port, calculate the difference between the estimated arrival time ETA and the current time TIMENOW, expressed as:
[0076] LDAYS=ETA-TIMENOW
[0077] And determine whether the LDAYS is greater than 7. If it is greater, mark the table data as arriving abnormally. Otherwise, do not react and obtain it according to the historical data in mysql.
[0078] Continue to traverse the table data to check whether the ship corresponding to the bill of lading number data has arrived at the port. If it has not arrived, calculate the difference between the estimated arrival time ETA, the actual departure time ATD and the average arrival days AVEDAYod from the origin to the destination, expressed as:
[0079] AVETDAYS=ETA-ATD-AVEDAYod
[0080] And determine whether the AVETDAYS is greater than 7. If it is greater, mark the table data as arriving abnormally. Otherwise, do not react and obtain it according to the historical data in MySQL.
[0081] Due to fluctuations in the network environment and the influence of risk strategy factors, a small number of bill of lading numbers may not produce any results when queried for the first time. For such data, you only need to copy it separately and use the program to query it again.
[0082] The present invention also provides an international ocean shipping logistics order system with automatic tracking and early warning, comprising:
[0083] The order collection module obtains the shipping company name and bill of lading number data of international shipping logistics orders and creates table data;
[0084] A thread creation module, creating a thread corresponding to the shipping company name and bill of lading number data;
[0085] The information tracking module captures the shipping company name and bill of lading number according to the corresponding thread interval to capture the corresponding current shipping logistics information;
[0086] The information warning module performs warning analysis based on the maritime logistics information.
[0087] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of any of the aforementioned methods when executed by a processor.
[0088] By obtaining the shipping company name and bill of lading number data of international shipping logistics orders, a corresponding thread based on the shipping company name and bill of lading number data is created, and based on the corresponding thread, the corresponding shipping logistics information is automatically tracked and captured, and the shipping logistics information is analyzed for early warning analysis. The method based on automated tracking of order information avoids the inefficiency of traditional manual data query, and no longer relies on asking agents to obtain data, liberating human resources and enhancing the timeliness, accuracy and reliability of data acquisition. In addition, based on automated tracking of order information, data analysis and data early warning can be provided in a timely and effective manner, and abnormal issuance and arrival data can be monitored in a timely manner, and business plans can be deployed in advance for orders that are about to arrive.
[0089] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0090] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for automatically tracking and warning international shipping logistics orders, characterized in that: include: S1. Obtain the shipping company name and bill of lading number data of international shipping logistics orders, and create table data; S2. Create a corresponding thread for the shipping company name and bill of lading number data; S3, capturing the current shipping logistics information corresponding to the shipping company name and bill of lading number according to the corresponding thread interval; S4. Perform early warning analysis based on the maritime logistics information.
2. The method for automatic tracking and early warning of international ocean logistics orders as claimed in claim 1, characterized in that: The shipping logistics information includes: At least the origin OCITY, destination DCITY, estimated departure time ETD, actual departure time ATD, estimated arrival time ETA, actual arrival time ATA, current ship position POSITION, ship name and voyage number VESSEL are captured as the shipping logistics information, and the shipping logistics information is automatically filled into the table data.
3. The method for automatic tracking and early warning of international ocean logistics orders as claimed in claim 2, characterized in that: The early warning analysis based on the maritime logistics information includes: S401, traverse the table data, query whether the ship corresponding to the bill of lading number data has departed, if not, calculate the difference between the current estimated departure time ETD and the estimated departure time FETD obtained by the first query of the bill of lading number data, expressed as: EDAYS=ETD-FETD And determine whether EDAYS is greater than 7. If so, mark the table data as triggering an exception, otherwise, do nothing.
4. The method for automatically tracking and warning international ocean logistics orders as claimed in claim 3, characterized in that: The early warning analysis based on the maritime logistics information also includes: S402, traverse the table data to check whether the vessel corresponding to the bill of lading number data has arrived at the port. If it has not arrived at the port, calculate the difference between the estimated arrival time ETA and the current time TIMENOW, expressed as: LDAYS=ETA-TIMENOW And determine whether the LDAYS is greater than 7. If it is, mark the table data as arriving abnormally, otherwise do not react.
5. The method for automatically tracking and warning international ocean logistics orders according to claim 4, characterized in that: The early warning analysis based on the maritime logistics information also includes: S403, traverse the table data, query whether the ship corresponding to the bill of lading number data has arrived at the port, if not, calculate the difference between the estimated arrival time ETA, the actual departure time ATD and the average arrival days AVEDAYod from the origin to the destination, expressed as: AVETDAYS=ETA-ATD-AVEDAYod And determine whether the AVETDAYS is greater than 7. If it is, mark the table data as arrival exception, otherwise do not respond.
6. An international shipping logistics order system with automatic tracking and early warning, characterized in that: include: The order collection module obtains the shipping company name and bill of lading number data of international shipping logistics orders and creates table data; A thread creation module, creating a thread corresponding to the shipping company name and bill of lading number data; The information tracking module captures the shipping company name and bill of lading number according to the corresponding thread interval to capture the corresponding current shipping logistics information; The information warning module performs warning analysis based on the maritime logistics information.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Logistics information tracking processing method and system
CN105225080A
Method and device for managing logistics
CN112150054A
Automatic tracking system of goods and its method
CN1536504A
Transport information retrieval service processing method
JP2001236416A
