Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/340.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用mechanize Python在textarea中输入数据_Python_Forms_Beautifulsoup_Mechanize_Python Requests - Fatal编程技术网

使用mechanize Python在textarea中输入数据

使用mechanize Python在textarea中输入数据,python,forms,beautifulsoup,mechanize,python-requests,Python,Forms,Beautifulsoup,Mechanize,Python Requests,我试着把数据输入到一个文本区域,上面写着 <textarea class="help_text" cols="40" id="annotation_text" name="annotation[text]" rows="15" style="box-shadow: 0 0 3px gray; padding: 5px; width: 600px;" title="Enter or paste text to be annotated"></textarea> 但我不

我试着把数据输入到一个文本区域,上面写着

<textarea class="help_text" cols="40" id="annotation_text" name="annotation[text]" rows="15" style="box-shadow: 0 0 3px gray; padding: 5px; width: 600px;" title="Enter or paste text to be annotated"></textarea>


但我不知道该怎么做,因为没有与之相关联的形式。这是网站的链接。我非常感谢您对如何输入文本的帮助。

这里可能会应用不同的解决方案,尽管这很清楚-这对于
mechanize
来说并不容易。最好使用以下方式提交(后请求):

印刷品:

Sample
sample
sample
sample
Specimen
Sample
...

非常感谢你。太好了。您能告诉我如何获得上下文列吗。@amy只需探索循环中的
注释
变量所包含的内容。打印出来,看看有哪些列,然后以与我得到的答案类似的方式获得
上下文。如果你有困难,请告诉我。谢谢,当然可以。我的错!看到一个有效的解决方案我很兴奋,这是一个非常愚蠢的问题的结果。非常感谢你的回答。
Sample
sample
sample
sample
Specimen
Sample
...