Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3954762
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:08:29+00:00 2026-05-20T02:08:29+00:00

Quite a simple question here. I want to import webkit2png into another script, but

  • 0

Quite a simple question here. I want to import webkit2png into another script, but I can’t get it to work.

import feedparser, webkit2png
d = feedparser.parse('http://example.com/rss')
link = d.entries[0].link
title = d.entries[0].title
webkit2png link

This gives me a syntax error on line 5. What do I do wrong?

 File "example.py", line 5
    webkit2png link
               ^
SyntaxError: invalid syntax
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T02:08:30+00:00Added an answer on May 20, 2026 at 2:08 am

    webkit2png seems to only have a command line interface, so importing the module won’t help much, unless you try to replicate the code that is issued in the main function in webkit2png.

    I’d suggest to use the subprocess module to call the file directly, e.g.

    import feedparser
    import subprocess
    
    d = feedparser.parse('http://example.com/rss')
    link = d.entries[0].link
    title = d.entries[0].title
    
    subprocess.call(["webkit2png", link])
    

    In case the webkit2png.py is in the same directory of your script, replace the subprocess.call with

    subprocess.call(["python", "webkit2png.py", link])
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The question is quite simple. But I want to know where exactly do we
I have actually seen this question quite a bit here, but none of them
The question is quite simple: How to read a .pgm image file into a
My question is quite simple: I want to store the FILE NAME that I
It's quite a simple question - how do I sort a collection? I've got
I've never learnt JavaScript, but I imagine this is quite a simple problem. Just
Quite a simple question. In SQL 2008 if I have a stored procedure (see
Well this is probably a stupid question with a simple answer but when using
This is a very simple question for many of you reading this, but it's
I asked this question earlier but regarding another programming languages. Let's say I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.