import requests
from bs4 import BeautifulSoup
payload = {'nvpm': '1|076||||TOTAL|||2|1|1|2|2|1|1|1|1'}
r = requests.get(
"https://www.trademap.org/Product_SelCountry_TS.aspx", params=payload)
soup = BeautifulSoup(r.text, 'html.parser')
for item in soup.findAll('font', {'color': '#002B54'}):
print(item.get_text(strip=True))
Output:
TOTAL
All products
225,098,405
191,126,886
185,235,399
217,739,218
239,889,210
12
Oil seeds and oleaginous fruits; miscellaneous grains, seeds and fruit; industrial or medicinal. . .
23,500,132
21,207,738
19,557,938
26,008,460
33,517,529
27
Mineral fuels, mineral oils and products of their distillation; bituminous substances; mineral. . .
25,202,959
16,553,500
11,581,278
21,222,938
29,670,809
26
Ores, slag and ash
28,402,213
16,693,435
15,816,099
22,397,927
23,663,011
84
Machinery, mechanical appliances, nuclear reactors, boilers; parts thereof
12,727,864
11,361,268
11,647,181
13,848,545
14,791,209
02
Meat and edible meat offal
15,417,191
13,077,586
12,655,793
13,953,388
13,292,305
87
Vehicles other than railway or tramway rolling stock, and parts and accessories thereof
9,808,166
9,604,507
10,971,033
14,724,004
12,652,789
72
Iron and steel
9,605,030
8,927,018
7,892,012
10,761,292
11,804,871
47
Pulp of wood or of other fibrous cellulosic material; recovered (waste and scrap) paper or. . .
5,298,146
5,603,405
5,575,279
6,355,349
8,360,265
23
Residues and waste from the food industries; prepared animal fodder
7,363,381
6,171,801
5,538,918
5,394,736
7,168,012
17
Sugars and sugar confectionery
9,616,253
7,781,310
10,585,665
11,566,378
6,672,492
89
Ships, boats and floating structures
2,167,168
1,985,490
3,841,358
932,484
5,765,291
09
Coffee, tea, maté and spices
6,536,042
6,046,077
5,228,087
5,010,002
4,699,592
10
Cereals
4,438,189
5,724,924
4,109,624
4,980,607
4,621,016
28
Inorganic chemicals; organic or inorganic compounds of precious metals, of rare-earth metals,. . .
3,346,932
3,403,950
3,301,028
3,852,041
4,185,991
88
Aircraft, spacecraft, and parts thereof
4,050,744
4,503,206
4,803,093
4,045,347
3,973,881
85
Electrical machinery and equipment and parts thereof; sound recorders and reproducers, television. . .
4,216,053
3,649,815
3,239,912
3,435,462
3,458,453
39
Plastics and articles thereof
3,610,243
3,483,327
3,501,806
3,656,340
3,426,433
71
Natural or cultured pearls, precious or semi-precious stones, precious metals, metals clad. . .
2,875,116
2,797,462
3,375,746
3,335,568
3,346,363
44
Wood and articles of wood; wood charcoal
2,243,112
2,271,395
2,361,478
2,779,920
3,182,251
20
Preparations of vegetables, fruit, nuts or other parts of plants
2,258,080
2,150,306
2,209,211
2,273,080
2,516,669
29
Organic chemicals
3,214,660
2,263,941
1,855,794
2,366,033
2,241,528
99
Commodities not elsewhere specified
180,703
149,803
2,124,969
140,501
2,222,181
48
Paper and paperboard; articles of paper pulp, of paper or of paperboard
1,922,180
2,020,963
1,871,020
1,913,082
2,072,495
24
Tobacco and manufactured tobacco substitutes
2,501,868
2,186,217
2,123,366
2,092,161
1,988,179