I have cookies txt file with generated data from Chrome extension is look like this:
# Netscape HTTP Cookie File
# http://curl.haxx.se/rfc/cookie_spec.html
# This is a generated file! Do not edit.
.site.net TRUE / FALSE 1701453620 _ga GA1.2.10834324067.1638446981
.site.net TRUE / FALSE 1638123020 _gid GA1.2.25433025264.1638446981
.site.net TRUE / FALSE 1646432624 _fbp fb.1.1643546988197.973328968
I need to load it to hashmap and to use it in Jsoup connection
HashMap<String,String> coockies = load.file
Document doc = Jsoup.connect(mainUrl).cookies(cookies).get();
It is possible to load the txt file and to convert it to hashMap