NOVELTY - The method comprises taking raw material comprising coke oven gas through electricity to remove tar, compressing the coke oven gas using a system, freezing the crude coke oven gas for recycling naphthalene, benzene and tar, fine removing macromolecular impurities using a preprocessing system, and performing two-section pressure swing adsorption of hydrogen, putting the benzene and tar containing naphthalene and coke oven gas in a pre-cooling chamber to 20-25 degrees C, and cooling the coke oven gas at 1-3 degrees C.    USE - The method is useful for extracting hydrogen gas from coke oven gas.    ADVANTAGE - The method is capable of economically and easily extracting the hydrogen gas from coke oven gas with reduced energy consumption in an environmentally friendly manner.    DETAILED DESCRIPTION - The method comprises taking raw material comprising coke oven gas through electricity to remove tar, compressing the coke oven gas using a system, freezing the crude coke oven gas for recycling naphthalene, benzene and tar, fine removing macromolecular impurities using a preprocessing system, and performing two-section pressure swing adsorption of hydrogen, putting the benzene and tar containing naphthalene and coke oven gas in a pre-cooling chamber to 20-25 degrees C, cooling the coke oven gas at 1-3 degrees C, cooling again the coke oven gas to 2-5 degrees C, introducing the coke oven gas and benzene into a freezing separation system to remove naphthalene from the raw material. The freezing separating system is divided into two sets with the voltage difference. The blocking phenomenon is present to be switched to the other end of a group of parallel freezing separation system. The temperature of the steam is 100-120 degrees C, which cleaning the passage is blocked. The sewage is discharged in the sewage pool in the unified processing of pipe dredging after finishing in the standby state at a temperature of 2-5 degrees C. The removing step comprises removing micro oil and compressor oil mist in raw material gas. The performing step is carried out by pressure swing adsorption decarburization (PSA-C/R), and pressure swing absorption hydrogen (PSA-H2). The raw material is purified using a gas flow meter. The methane enters the PSA-H2 section. The pressure swing adsorption decarburization (PSA-C/R) is used as a semifinished product. The hydrogen production pressure swing adsorption ( PSAH2) gas uses piston type compressor. A screw compressor compresses the coke oven gas before freezing. An absorbent comprises active carbon. A regenerating gas is desorbed by the PSA. The pressure swing adsorption uses two-section technology process. The PSA-C/R section comprises 4-20 absorption tower. The absorbent: from the upper part to the lower is filled with alumina, active carbon and silica gel; and from the lower to the upper part is filled with active carbon, silica gel and molecular sieve. The PSA-H2 section comprises 4-16 tower.