Search

CN-117251614-B - Acquisition method, device, medium and electronic equipment of digital content on chain

CN117251614BCN 117251614 BCN117251614 BCN 117251614BCN-117251614-B

Abstract

The application discloses a method, a device, a medium and electronic equipment for acquiring digital contents on a chain, wherein the method comprises the steps of acquiring basic block data from a target blockchain network to be processed, generating platform access addresses of a plurality of digital content trading platforms based on the basic block data, wherein the digital content trading platforms are used for trading the digital contents generated in the target blockchain network, and reading target digital contents in the target blockchain network from the digital content trading platforms based on the platform access addresses through an analog browser cluster and a limit breaking plug-in. The application can realize the acquisition of the digital content in the blockchain network, can ensure the accuracy of the acquired digital content and can reduce the acquisition cost of the digital content.

Inventors

  • WANG GONGRUI
  • LAN CHUNJIA

Assignees

  • 上海零数众合信息科技有限公司

Dates

Publication Date
20260512
Application Date
20231010

Claims (9)

  1. 1. A method of capturing digital content on a chain, the method comprising: acquiring basic block data from a target block chain network to be processed; generating platform access addresses of a plurality of digital content trading platforms based on the basic block data, wherein the digital content trading platforms are used for trading digital content generated in the target block chain network; Reading target digital content in the target blockchain network from the digital content trading platform based on the platform access address through an analog browser cluster and a limit breaking plug-in, wherein the limit breaking plug-in is used for assisting the analog browser cluster to break through page access limit of the digital content trading platform in the process of reading the target digital content; wherein the reading, by the analog browser cluster and the limit break-through plug-in, the target digital content in the target blockchain network from the digital content transaction platform based on the platform access address includes: generating a data access request based on the platform access address through the simulated browser cluster and sending the data access request to a network proxy service; And based on a preselected network IP and a data access request, the network proxy service utilizes the limit breaking plug-in to perform data access on the digital content transaction platform so as to read target digital content from the target blockchain network.
  2. 2. The method of claim 1, wherein the simulated browser cluster is constructed by: Creating a virtual display screen and a simulated browser, and integrating the virtual display screen and the simulated browser to obtain a browser mirror image; Deploying the browser image to at least one target physical machine; And instantiating the browser image to obtain a browser container, and obtaining the simulated browser cluster according to the browser container.
  3. 3. The method according to claim 1, wherein the method further comprises: Feeding back a data access result to the simulated browser cluster through the network proxy service based on the target network interface of the preselected network IP; monitoring a target network interface of the preselected network IP through a monitoring proxy service to collect the data access result; Extracting first digital content from a data access result fed back to the analog browser cluster by the network proxy service; Extracting second digital content from the data access results collected by the listening agent service at the target network interface; and generating the target digital content according to the first digital content and the second digital content.
  4. 4. The method of claim 1, wherein the obtaining basic block data from the target blockchain network to be processed comprises: deploying a target blockchain node to the target blockchain network, and synchronizing existing blockdata in the target blockchain network through the target blockchain node; analyzing the existing block data based on a preselected intelligent contract protocol to obtain a data analysis result; and determining basic block data of the target block chain network according to the data analysis result.
  5. 5. The method of claim 1, wherein generating platform access addresses for a plurality of digital content trading platforms based on the base tile data comprises: extracting intelligent contract data and digital content identification from the basic block data; performing splicing processing on the intelligent contract data and the digital content identifier to obtain a data splicing result; And generating platform access addresses of a plurality of digital content trading platforms based on the data splicing result.
  6. 6. The method of claim 1, wherein after reading the target digital content in the target blockchain network from the digital content trading platform based on the platform access address, the method comprises: Determining intelligent contract data associated with the target digital content according to a platform access address to which the target digital content belongs; Acquiring target metadata from the target digital content according to an intelligent contract protocol in the intelligent contract data and determining a target data type to which the target metadata belong; And if the target data type is the data reading address, reading data based on the data reading address and updating the target metadata according to a data reading result until the target data type to which the target metadata belongs is a preset data type.
  7. 7. An apparatus for capturing in-chain digital content, the apparatus comprising: The basic block data acquisition module is used for acquiring basic block data from a target block chain network to be processed; The platform access address determining module is used for generating platform access addresses of a plurality of digital content trading platforms based on the basic block data, wherein the digital content trading platforms are used for trading digital content generated in the target block chain network; the digital content transaction platform comprises a target digital content reading module, a target digital content reading module and a limiting breakthrough plug-in, wherein the target digital content reading module is used for reading target digital content in the target blockchain network from the digital content transaction platform based on the platform access address through an analog browser cluster and the limiting breakthrough plug-in, and the limiting breakthrough plug-in is used for assisting the analog browser cluster to break through page access limitation of the digital content transaction platform in the process of reading the target digital content; Wherein, the target digital content reading module comprises: The data access request generation sub-module is used for generating a data access request based on the platform access address through the simulated browser cluster and sending the data access request to a network proxy service; And the target digital content reading sub-module is used for carrying out data access on the digital content transaction platform by utilizing the limit breaking plug-in based on a preselected network IP and a data access request through the network proxy service so as to read target digital content from the target blockchain network.
  8. 8. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a method of acquisition of on-chain digital content according to any one of claims 1-6.
  9. 9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of acquisition of on-chain digital content as claimed in any one of claims 1-6 when the computer program is executed by the processor.

Description

Acquisition method, device, medium and electronic equipment of digital content on chain Technical Field The present application relates to the field of computer technologies, and in particular, to the field of blockchain, and in particular, to a method, an apparatus, a medium, and an electronic device for acquiring digital content on a chain. Background Digital content generated by the blockchain network can be transacted through a digital content transaction platform. That is, digital content generated by the blockchain network may be collected by the digital content trading platform. In the related art, a web page code of a digital content trading platform is generally acquired by using a web page downloader or a script tool such as a crawler tool. Then, the digital content of the digital content trading platform is collected by means of searching keywords or analyzing webpage codes. However, the access website of the digital content transaction platform is difficult to acquire, and the protection mechanism arranged in the digital content transaction platform can make the acquisition of the digital content transaction platform more difficult. Furthermore, in some cases, a physical screen and an entity browser are often required to collect digital content from the digital content transaction platform, which makes collection of digital content costly. Disclosure of Invention The application provides a method, a device, a medium and electronic equipment for acquiring digital content on a chain, which can acquire the digital content from a blockchain network, can ensure the accuracy of the acquired digital content and can reduce the acquisition cost of the digital content. According to a first aspect of the present application, there is provided a method of acquisition of digital content on a chain, the method comprising: acquiring basic block data from a target block chain network to be processed; generating platform access addresses of a plurality of digital content trading platforms based on the basic block data, wherein the digital content trading platforms are used for trading digital content generated in the target block chain network; and reading the target digital content in the target blockchain network from the digital content transaction platform based on the platform access address through the analog browser cluster and the limit breaking plug-in. According to a second aspect of the present application there is provided an acquisition device for in-chain digital content, the device comprising: The basic block data acquisition module is used for acquiring basic block data from a target block chain network to be processed; The platform access address determining module is used for generating platform access addresses of a plurality of digital content trading platforms based on the basic block data, wherein the digital content trading platforms are used for trading digital content generated in the target block chain network; And the target digital content reading module is used for reading the target digital content in the target blockchain network from the digital content transaction platform based on the platform access address through the analog browser cluster and the limit breaking plug-in. According to a third aspect of the present application, an embodiment of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method for collecting on-chain digital content according to an embodiment of the present application. According to a fourth aspect of the present application, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement a method for acquiring on-chain digital content according to the embodiment of the present application. According to the technical scheme, platform access addresses of a plurality of digital content transaction platforms are generated based on basic block data acquired from a target blockchain network to be processed, and target digital content in the target blockchain network is read from the digital content transaction platforms based on the platform access addresses through the simulation browser cluster and the limit breakthrough plugin, so that the acquisition of the digital content in the blockchain network is realized. The digital content transaction platform is used for transacting the digital content generated in the target blockchain network, and the accuracy of the acquired digital content can be ensured by accessing the digital content transaction platform and reading the target digital content in the target blockchain network. It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the applicat