Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm looking to get into web development. My goal is to create some interactive webpages that interact with MS SQL databases (read/insert/updates), and also possibly sites that interact with XML files.
I've got some basic understanding of Python and Perl scripting. Can someone point me in the right direction in either of those languages to accomplish what i'm looking to do, or if it's easier to accomplish in another language what would that be?
Apologies if my stated goal is too broad.
I'd strongly suggest you to look into some of the web development frameworks. They take care of many low-level tasks which is needed in order to build a solid web page. I'm not very familiar with perl, so I can only suggest Python frameworks, especially one of the my favourites - Django. It has very good documentation which is essential for the first-timer. I believe you should be fine as long as you follow the official documentation.
Good luck
You can use SQL Alchamy in python, and lxml or the default ElementTree xml module for simple cases.
I have done both for a webservice I maintain, and they work nice.
You can also use a web development framework. I personally suggest Flask based on that it is a lightweight framework as opposted to django for instance. However, depending on your exact use case the latter might be better.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am confused as to how APIs work with django in general. I am looking to get started but am a bit confused where to start. I am fairly new to django but have mastered most of the basics.
I am looking to understand how to communicate with other REST apis, how to send and receive json data, what is needed for this data(where does it live, are models required?, do I create views to access json data?)
I am looking for a comprehensive tutorial or book/article that I can follow that will teach me the ins and outs of this. Any help on where to get started would be much appreciated.
Django is for web development. If what you want to do is get JSON from some remote RESTful service, no part of that requires Django. Instead, try urllib or httplib2, and check simple examples elsewhere.
Again, sending JSON data is a simple as using the json library in python, and using the same urllib tricks you use to consume JSON from other people. So no django needed there either.
As for whether models are required, well that depends 100% on what you're trying to do. Your question about needing "views" on json data I think confuses several different issues.
I'd recommend you read up on RESTful services in general, and where JSON fits before you start implementation.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm reading around and see that it is a bad idea to have remote application talk directly to my MongoDB e.g. install a Mongodb driver in a phone app. The best way is to have a REST interface on a server to talk between the database and the end user. But what about the aggregation framework?
I see Sleepy.mongoose and Eve but I cannot see anything about aggregation.
Is there any way/or REST interface which allows you to make aggregation calls (I'm interested in subdocuments)?
E.g. requesting $ curl 'http://localhost:27080/customFunction/Restaurant' and return all the subdocuments matching shop.kind with Restaurant.
I'm familiar with python and java, is there any API framework that allows you to do that?
Before you get flagged as off-topic as you likely will for asking for opinions and not a specific programming question I'll just say one bit. Hopefully on-topic.
I highly doubt that most projects will go beyond being a basic CRUD adaptor allowing you access to collection objects and sometimes (badly) database objects. Is with their various ORM backed counterparts they will do doubt allow a similar query syntax to be executed from the client, so queries could be composed and sent through as JSON, which will not surprisingly look much like (identical) to the standard query syntax for MongoDB.
For myself I prefer to roll my own, and largely because you may want to implement a lot of customer behavior and actions, and in some way abstract a little from having a lot of CRUD code in the client. Let's face it, you're probably passing through and passing JSON that is going into the native structures you're using anyway. So it's not hard really. Anyhow, each to his own I suppose.
There is a listing of other implementations on available here:
http://docs.mongodb.org/ecosystem/tools/http-interfaces/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I do not even know how to start to ask this question. So here is my best effort. Please guide me along. I have always been interested in GAE. Now I would like to develop an application that uses GAE. But I am having trouble selecting the appropriate technology stack to use with GAE. For example, should I use Python or Java in GAE? Should I use GWT or some other tool to develop the end user interface (GUI).
Right now, I tend to favor using Python on the GAE. But I don't know about the end user interface (GUI). Is GWT the only option?
About my little application:
The application will allow the user to input information/photos about an inspection (common stuff) and create a record of the inspection. Then the application will generated an inspection report (common format) of a selected record.
I hope this is enough to describe my dilemma. Thanks,
App Engine Python applications have built in support for webapp2 which itself inherently support Django templates out of the box. GWT is definitely not the only option.
As Thomas Orozco said in his answer, you can use a myriad of front end technologies. Although I've never tried it, if you wrote your app in Python I'm sure you could use Cheetah, Jinja2, or some other templating language.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I've started writing a crawler to crawl vbulletin boards. However, I am not a web programmer (json api's I can do, but that isn't really web-crawling), and as such I do not know what the best way to crawl is, and what tools are available.
I am more than capable of writing the crawler, but the I find the underlying HTML very irregular, and so I don't want to be a victim of the structure of the HTML changing in a newer version of vbulletin.
I'm writing an interface using pycurl and beautiful soup. However, is there a better way to do this, are there any good crawlers already available for vbulletin ? (language is not a concern). A meta forum crawler (works with more than one forum type) would be even better.
If you cannot suggest one, could you advise me, if you have the experience, from what I should expect from the stability of the underlying HTML, should I worry about a new version of vbulletin breaking my crawler ?
Perhaps there is a better way to extract a vbulletin dataset ?
Having HTML change is an inherit issue with webcrawling. That is why it should only be an absolute last resort. Maintaining crawlers can be a huge task, as you have seen, because HTML can change daily and there are no guarentees.
Because the data that is usually being searched for is uniform, scrapy is an excellent choice.
http://doc.scrapy.org/en/0.14/index.html
It uses xpath to select elements, which is relatively easy to mainatin imo.
Even if there is a vbulletin specific scraper it is still dependent on HTML which can break at will. Because vbulletin is a platform you are probably pretty well off scraping it. I would think HTML would only change on version updates which shouldn't be that often.
Does the mobile API provide you with any functionality you need?
https://www.vbulletin.com/forum/content.php/367-API-Overview, I guess this depends on per site vbulletin setup.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I want to start developing an ERP for small companies, So I'd like to know what python web framework is highly recommendable for?
I don't think there's any particularly suited for ERPs. Check out a list of all the current frameworks: http://wiki.python.org/moin/WebFrameworks.
openerp is open source and written in python, it uses cherrypy and other things
A open source erp solution called ERP Next [ https://erpnext.com/ ] uses python framework called WNF Framework [ https://github.com/webnotes/wnframework ] .You can ask for a free demo and gauge the
Frappe is the underlying framework of ERPNext, you can check it out. Documentation is relatively unavailable though so you may have to work your way through the source.
Check out web.py. It's a very minimalist Python framework and gives you the flexibility you might need to build something outside of the mainstream data-driven app
http://webpy.org/