question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to create spider with custom templates

See original GitHub issue

I don’t know, am I wrong, but is it possible now to create custom templates and create spiders with scrapy genspider -t <custom_template> <name> <domain>? As I see in source code, user can set custom template folder in TEMPLATE_FOLDER variable, but is there any documentation about template language, which using in template?

Actually, I’ve planned to work on PR with possibilities to create custom templates, but probably it’s already implemented. May be just add documentation about this feature?

UPD. Ah, I see, that _genspider using render_templatefile, which just using string.Template().substitute() to render template and save .py file

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
DrJackilDcommented, Jun 9, 2016

@kmike Ok, I’ll make PR with some explanation about .tmpl files and necessary arguments, which need to be in templates. Thanks for the discussion 😃

3reactions
Congeecommented, Jun 12, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Create a Spider Diagram Online and Free - EDIT.org
Make a Spider Diagram for writing by selecting a template from the best collection of designs. Customize it online quickly and professionally.
Read more >
Spider Diagram Maker | Spider Diagram Templates and Tips
Spider diagram maker to visualize and organize ideas in a logical way. Easy-to-use spider diagram templates and tips to get you started right...
Read more >
How to create spider charts in Google Sheets - EdrawMax
Using Templates To Create Spider Charts in EdrawMax (Fast!) ... here is a video tutorial on creating a spider chart/radar chart on Google...
Read more >
How to create a Custom API integration template? - SyncSpider
First, login to your SyncSpider account, click on the option 'Custom Templates' on the left side of the screen as shown below.
Read more >
Weaving Ideas with Spider Diagrams | Lucidchart Blog
To make things even easier, try starting with a Lucidchart spider diagram template. Open the template and fill in your own information, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found