Load URL from files?
See original GitHub issueHi again
I have US state wise URLs like http://example.com/ca
, http://example.com/al
I have created my scraper and saved it. Is it possible to assign URLs from file in load
textfile instead of I run them manually?
Thanks
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
What is it? How to open a URL file? - FILExt
If you cannot open your URL file correctly, try to right-click or long-press the file. Then click "Open with" and choose an application....
Read more >File URLs or how to open folder from URL - Stack Overflow
in my browser address bar which opens a page with a directory listing of the files in the sub folder. Not ideal but...
Read more >Open .URL files (Internet Shortcut) with any Browser via Right ...
Right-click on a .url file and click Open with… ... Select your browser from the link, and click OK. This method, however, doesn't...
Read more >Opening files using a URL - FileMaker Pro
To open a file using a URL: 1. Launch a web browser on the intended client machine. 2. Enter the URL of ...
Read more >How to open .URL files with any Browser in Windows 10
A file with a .URL extension, aka website shortcut, is launched in a default browser when double-clicked. The .URL file can be created...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Internally, we already have the option to use parameters defined outside of the Helena program. I’ve been planning for a while now to add the option to provide them from the command line (for the Docker or the standard run scripts). I’ll go ahead and move that to the top of the to do list.
Here’s how you specify the start URL from the command line:
Load the Helena script you want to edit in the Chrome extension.
Open the “Advanced Options” menu.
You’ll see a section that starts with “You can enter a parameter name here…” In that section, enter a name (e.g., url_param) and default value (e.g., example.com). The default value will allow you to test the script from the Chrome extension.
Once you press the Add Parameter button, you can start using the parameter value anywhere in your program (e.g., in the load statement that loads the start URL). To find a node that uses the parameter, click on the “other” section in the toolbox, then pull out the pink block. You can browse the names in the block’s pulldown menu until you find the name of your new parameter.
If you run the program from the extension, it will now use the value you gave as the default value.
To run the program with different values from the command line, you use a docker command like this: docker run -t -p 5900:5900 -e VNC_SERVER_PASSWORD=password -e HELENA_PROGRAM_ID=4249 -e TIME_LIMIT_IN_HOURS=23 -e NUM_RUNS_ALLOWED_PER_WORKER=1 -e SCRIPT_PARAMS=“url=example2.com” --user apps --privileged schasins/helena:latest The key part there is: -e SCRIPT_PARAMS=“url=example2.com”