How can I make collection page like unsplash in django - python

I am new to web development, trying to make a image gallery and I can't figure out how to make the collection page.

Please include what do you want to do, what have you tried in order to do that and hopefully, where or what error message are you receiving.
Only then, me or someone will be able to help you.
If you don't know how to start, you are in the wrong place.
You should start watching some tutorial on youtube, then read some documentation and help yourself with more tutorials.
When you have a specific question, you come here.
:)

Related

How to detect Facebook posts in a group then comment on it?

Basically, I'm trying to write python script that runs on my computer and detects new posts in a group and if it has some keywords in it, it comments a specified string. I'm currently stuck at the beginning.
Initially, I wanted to use Graph API, but it required some kind of business verification. I haven't found a working alternative yet, so literally any advice is more than welcome.
Thank you in advance for all answers!

Site for posting project so people can use it and help make it better

I know this is a weird question and I don't know if I'm allowed to ask this here or not. If not feel free to delete this post. But is there a feature on this site or some other site where I'm able to post my project I'm working on so other people could use it and together try to improve it?
What you are looking for is probably is Open Source community. The best way to achieve that is using something like Github, where you can make your project available as a repository and share for other people to contribute.
This link might help you: https://github.com/open-source
Anyways, I suggest you upload your project to Github if you're thinking about making it public, that is one of the best ways to show your projects on job interviews or as a portfolio.

How to have python interact automatically with a web site

Ok, so I've looked around on how to do this and haven't really found an answer that showed me examples that I could work from.
What I'm trying to do is have a script that can do things like:
-Log into website
-Fill out forms or boxes etc.
Something simple that might help me in that I though of would be for example if I could write a script that would let me log into one if those text message websites like textnow or something like that, and then fill out a text message and send it to myself.
If anyone knows a good place that explains how to do something like this, or if anyone would be kind enough to give some guidance of their own then that would be greatly appreciated.
So after some good answers and further research, I have found that selenium is the thing that best suits my needs. It works not only with python, but supports other languages as well. If anyone else is looking for something that I had been when I asked the my question, a quick Google search for "selenium" should give them all the information they need about the tool that I found best for what I needed.

How to get changing information from a webpage in Python

I am new with Python and am trying to create a program that will read in changing information from a webpage. I'm not sure if what I'm wanting to do is something simple or possible but in my head it seems do-able and relatively. Specifically I am interested in pulling in the song names from Pandora as they change. I have tried looking into just reading in information from a webpage using something like
import urllib
import re
page = urllib.urlopen("http://google.com").read()
re.findall("Shopping", page)
['Shopping']
page.find("Shopping")
However this isn't really what I'm wanting due to it getting information that doesn't change. Any advice or a link to helpful information about reading in changing info from a webpage would be greatly appreciated.
The only way this is possible (without some type of advanced algorithm) is if there are some elements of the page that do NOT change, which you can specify your program to look for. Otherwise, I believe you will need some sort of advanced logic. After all, computers can only do what we instruct them to do. Sorry :)

how to count number of links shared by a facebook page?

I am working on a website for which it would be useful to know the number of links shared by a particular facebook page (e.g., http://www.facebook.com/cocacola) so that the user can know whether they are 'liking' a firehose of information or a dribble of goodness. What is the best way to get the number of links/status updates that are shared by a particular page?
+1 for implementations that use python (this is a django website) but any solutions are welcome! I tried using fbconsole to accomplish this but I have come up a little short.
For what it is worth, this unanswered question seems relevant. As does the fact that, as of 2012.04.18, you can export your data to csv from the insights management page on the facebook site. The information is in there I just don't know how to get it out...
Thanks for your help!
In the event that anyone else finds this useful, I thought I'd post my gist example here. fbconsole makes it fairly simple to extract data through the Facebook Graph API.
The caveat is that it was not terribly easy to programmatically extract data through fbconsole so I wrote the fbconsole.automatically_authenticate to make it much easier to access this information in a systematic way. This addition has not yet been incorporated into the master branch of fbconsole (it was just posted this morning), but it is available here in the meantime for those that are interested.

Categories

Resources