Hi i’m reading a 41523 lines file (read file line block) and i would like to divide it into predefined var/cap of maximum 1000 “chunks” i tried to create a code with jint and iron python, but i couldn’t do it. i want to create a kind of list of thing because i should make requests with index of each element and respective content and NO the TAKE command is not what i’m looking for as it doesn’t divide read file lines.
The request should look like this in the POST (I am reading a file that contains ip:port of public proxy) - (index of element)
Content-Disposition: form-data; name="ip_addr[]"
54.37.74.220:80-0
-----------------------------435902341004570564730231420768
Content-Disposition: form-data; name="ip_addr[]"
85.215.64.49:80-1
-----------------------------435902341004570564730231420768
Content-Disposition: form-data; name="ip_addr[]"
89.145.162.81:3128-2
-----------------------------435902341004570564730231420768
Content-Disposition: form-data; name="ip_addr[]"
114.129.2.82:8081-3
-----------------------------435902341004570564730231420768
Content-Disposition: form-data; name="ip_addr[]"
198.49.68.80:80-4
-----------------------------435902341004570564730231420768
Content-Disposition: form-data; name="ip_addr[]"
8.213.151.128:3128-5
-----------------------------435902341004570564730231420768
Content-Disposition: form-data; name="ip_addr[]"
47.178.24.220:80-6
-----------------------------435902341004570564730231420768
Content-Disposition: form-data; name="ip_addr[]"
77.83.246.25:80-7
-----------------------------435902341004570564730231420768
Content-Disposition: form-data; name="ip_addr[]"
43.134.68.153:3128-8
-----------------------------435902341004570564730231420768
Content-Disposition: form-data; name="ip_addr[]"
51.89.255.67:80-9
-----------------------------435902341004570564730231420768
Content-Disposition: form-data; name="ip_addr[]"
103.159.194.33:1111-10
-----------------------------435902341004570564730231420768
Content-Disposition: form-data; name="ip_addr[]"
45.92.177.60:8080-11
-----------------------------435902341004570564730231420768
Content-Disposition: form-data; name="ip_addr[]"
121.8.215.106:9797-12
do you know how to do this? there is a block that does this @Ruri how should I do for each “cap/var list created” make a request with its contents and index number?

