Skip to content

Commit

Permalink
form_action to fill_form
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewZMSU committed Aug 15, 2024
1 parent a734a72 commit 39f87f2
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import scrapy
from scrapypuppeteer import PuppeteerRequest, PuppeteerScreenshotResponse
from scrapypuppeteer.actions import Screenshot, FormAction
from scrapypuppeteer.actions import Screenshot, FillForm
import base64


class FormActionSpider(scrapy.Spider):
name = "form_action"
custom_settings = {

}
name = "fill_form"
start_urls = ["https://www.roboform.com/filling-test-all-fields"]

def start_requests(self):
Expand All @@ -20,7 +23,7 @@ def form_action(self, response):
}

yield response.follow(
FormAction(input_mapping), close_page=False, callback=self.screenshot
FillForm(input_mapping), close_page=False, callback=self.screenshot
)

def screenshot(self, response):
Expand Down

0 comments on commit 39f87f2

Please sign in to comment.