The tax collector shall thereupon publish a notice once a week for at least three successive weeks in some newspaper published in the county or city and county in which the lands are situated, or if there is no newspaper published therein, then the tax collector shall post a notice in three conspicuous places in the county or city and county at least three weeks before the day named in the notice.