I have login working and cookie stored, now there is a form I would like to pass a url than re.search for the output.
I am struggling with it.
Here is the POST area: not much in it
action="" I am not sure about that
Here is what I am trying to code:
after you submit a link it is verified under the form box, and need to research for the following:
match=re.search('<span class="resultvalid">(.+?)</span>', content)
return match
I need this match but I am not submitting the form properly. Is this even possible?
I am struggling with it.
Here is the POST area: not much in it
Code:
<form name="import" action="" method="POST" enctype="multipart/form-data">
<p><textarea id="download_links" name="download_links" style="width:98%;resize:none;" rows="12" placeholder="Enter your links here (one link per line)"></textarea></p>
<p>
Here is what I am trying to code:
Code:
posturl = url "url is passed for the page"
link = 'link to send'
form = {"not sure", 'download_links' : link} *not sure about the post data to send and how properly
net.set_cookies(cookiejar)
content.net.http_POST(posturl, form)
match=re.search('<span class="resultvalid">(.+?)</span>', content)
return match
I need this match but I am not submitting the form properly. Is this even possible?