Skip to content

Commit 4a7b0df

Browse files
added har.fyi link on homepage (#1013)
* new link * let's keep faq too * some updates
1 parent 717508f commit 4a7b0df

File tree

8 files changed

+16
-26
lines changed

8 files changed

+16
-26
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ templates/sitemap.xml
1010
**/.DS_Store
1111
.coverage
1212
.idx/dev.nix
13+
.coverage.*

docs/faq.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ As of March 1 2016, the tests are performed on Chrome for desktop and emulated A
2020

2121
The test agents are run from [Google Cloud regions](https://cloud.google.com/compute/docs/regions-zones) across the US. Each URL is loaded once with an empty cache ("first view") for normal metrics collection and again, in a clean browser profile, using [Lighthouse](https://developers.google.com/web/tools/lighthouse). The data is collected via a [HAR file](https://en.wikipedia.org/wiki/.har). The HTTP Archive collects these HAR files, parses them, and populates various tables in BigQuery.
2222

23+
2324
## How accurate is the data, in particular the time measurements?
2425

2526
Some metrics like the number of bytes, HTTP headers, etc are accurate at the time the test was performed. It's entirely possible that the web page has changed since it was tested. The tests were performed using a single browser. If the page's content varies by browser this could be a source of differences.
@@ -38,8 +39,6 @@ Given these conditions it's virtually impossible to compare the HTTP Archive's t
3839

3940
The HTTP Archive dataset is available publicly on BigQuery. Check out [Getting Started Accessing the HTTP Archive with BigQuery](https://har.fyi/guides/getting-started/).
4041

41-
For a guided walkthrough of the project, watch this in-depth [30 minute video](https://www.youtube.com/watch?v=00f9kza3BJ0) featuring HTTP Archive maintainer [Rick Viscomi](https://twitter.com/rick_viscomi).
42-
4342

4443
## What changes have been made to the test environment that might affect the data?
4544

docs/gettingstarted_bigquery.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

package-lock.json

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/dates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def mock_get_dates(start_year, end_year, today, month_delta=0):
5151
# Setup the mock dates
5252
import datetime
5353

54-
now = datetime.datetime.now()
54+
now = datetime.datetime.now(datetime.timezone.utc)
5555
mock_dates = mock_get_dates(2010, now.year, now.day, now.month)
5656

5757

server/tests/routes_test.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,6 @@ def test_faq_with_slash(client):
156156
assert_route(client, "/faq/", 301, "/faq")
157157

158158

159-
def test_faq_legacy(client):
160-
assert_route(
161-
client,
162-
"/downloads.php",
163-
301,
164-
"/faq#how-do-i-use-bigquery-to-write-custom-queries-over-the-data",
165-
)
166-
167-
168159
def test_legacy_page(client):
169160
assert_route(client, "/index.php", 301, "/")
170161

server/timestamps.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ def get_timestamps_config():
1717
return timestamps_json
1818

1919

20-
def get_file_date_info(file, type):
20+
def get_file_date_info(file_name, file_type):
2121
timestamps_config = get_timestamps_config()
2222
# Default Published and Last Updated to today
23-
today = datetime.datetime.utcnow().isoformat()
24-
if type == "date_published" or type == "date_modified":
25-
return timestamps_config.get(file, {}).get(type, today)
23+
today = datetime.datetime.now(datetime.timezone.utc).isoformat()
24+
if file_type == "date_published" or type == "date_modified":
25+
return timestamps_config.get(file_name, {}).get(file_type, today)
2626
else:
27-
return timestamps_config.get(file, {}).get(type)
27+
return timestamps_config.get(file_name, {}).get(file_type)
2828

2929

3030
def get_versioned_filename(path):

templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ <h2>
6565
<p>
6666
The HTTP Archive archives and provides access to detailed information about each website it crawls: request and response metadata, response bodies, execution traces, and more. You can download this data for offline analysis, or access it as a public dataset via Google BigQuery for fast and rapid analysis.
6767
</p>
68-
<a href="{{ url_for('faq', _anchor=faq.ANCHOR_BIGQUERY) }}" class="btn">Learn More about using BigQuery</a>
68+
<a href="https://har.fyi/guides/getting-started/" class="btn">Get Started with Public Dataset</a>
6969
</div>
7070

7171
<div class="col-lg-6 col-sm-6 col-md-6 hidden-xs">

0 commit comments

Comments
 (0)