0
votes
2answers
30 views

How can I parse a list of dictionaries into JSON Format using Javascript?

I'm trying to parse a list of dictionaries in JSON format so I can use their data to create a set of list items, where the text and id are generated using this data. I'm passing the following to my ...
0
votes
1answer
26 views

how to receive a POST data in a python file

I have to receive a POST data from browser to a python file . suppose i want to post username and userID I am using Python with mod_python . So please some one tell me how to POST data as query ...
0
votes
0answers
15 views

BeautifulSoup4 incorrectly parsing the Doctype while looking for links

I've got a BeautifulSoup4 (4.2.1) parser which collects all href attributes from our template files, and until now it has been just perfect. But one of our guys is now getting a; TypeError: string ...
0
votes
2answers
27 views

Getting name of file upload - Google App Engine Python

I am trying to get my handler to check the extension of a file upload to ensure that the user isn't uploading malware or irrelevant files. I just can't seem to find a way to get the filename ...
1
vote
2answers
25 views

Making a program that sends an email which hyperlinks text in django

confirm_links = 'To confirm this order http://mywebsite.com ' deny_links = '\nTo deny this order http://mywebsite.com email=EmailMessage('title_text', confirm_links+deny_links, ...
0
votes
3answers
46 views

Python: Write an entire file to another file after a specific line that meets a particular condition

I'm working on a Python script that when I run it will cobble together text from different files so that I can create alternative versions of a website to easily compare different designs and also ...
2
votes
1answer
27 views

Use Javascript To Print Page As PDF (With Django)

I need to convert a web page to a PDF because it won't print/look correct if it isn't converted. This is because the web page is so big, that as an HTML document the browser will try and split it into ...
1
vote
1answer
38 views

flask: how to architect an POST endpoint that interfaces with HTML dropdowns

So I have a sqlite db file that I've used a python script to generate that I am reading in to present information to a Flask endpoint. The endpoint parses items from the db and generates a dict ...
0
votes
1answer
28 views

print a text between 2 keywords

I am working with html files. I want to extract the text which comes before the first Item 2 and after the Item 1a (thanks for helping part). First I delete the text that comes after the ...
-1
votes
0answers
21 views

Local Courses with Course Builder

Course Builder allows to create virtual courses relatively easy modifying some sources and with the dashboard, then with Google app engine its uploaded into google cloud. My question is, is there any ...
-3
votes
2answers
36 views

Python: how to automatically download files from an online document? [on hold]

I am looking for a script that will be able to search an online document (by giving the script the URL) and find all the downloadable links in the document and then download them automatically. I ...
0
votes
1answer
28 views

Setting the right URL to make bool false Django

I am sending an email to the user. I have a working link to let the user set the bool as "True". Although, I can not get the right URL to set it to False. In views.py: def confirm(request, itemnum): ...
0
votes
2answers
64 views

how to search backwards in python?

I am working with html files which have item 1, item 1a and item 2. is there a way to search backwards and find the item 1a which comes before an item 2? example: text= """ this is an example ...
0
votes
1answer
18 views

Why is my soup obj empty?

I'm trying to get all the URLs for the class='profile-search-school-link' but cannot even get a soup object. I do the following: site = ...
1
vote
1answer
20 views

Hyperlinking text in django which sends to an email

I would like to make "click here" a hyperlink which when clicked, would send people to 127.0.0.1 for example. confirm_links = 'To confirm this order <a href= "127.0.0.1://confirmorder/" > ...

1 2 3 4 5 143
15 30 50 per page