0

I would like to port a program which is using urllib and json (Python 3) to C. My question is which libraries exist to replace urllib and json in C and which are the best (easier, documented, fast)? If there are not good libraries in C I also accept C++

Thank you all.

3
  • 4
    What is the reason it needs to be C? If it is deployment, I believe there are other solutions. Commented Jan 12, 2011 at 10:06
  • 1
    Have you considered using Shed Skin code.google.com/p/shedskin or Cython cython.org? Commented Jan 12, 2011 at 10:42
  • Why not just use curl + python? Commented Jan 12, 2011 at 11:58

1 Answer 1

3

For JSON, json.org has a list of implementations for a variety of languages, including C. Most of them should be fairly lightweight and fast.

To replace urllib, you probably want to look at libcURL.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.