Many institutions have made parts of their archival collections available online. You might have to search through a few sites, but you are likely to find some great materials to use for your research including primary sources, maps, and photographs.
These sites focus on the history of California, but are likely to have information about San Francisco. They have photos, primary and secondary sources, and maps.