
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
The main objective of Google Data Analysis is to provide a personal data analytics tool to any Google user. Google captures a massive amount of personal information for every person with a Google account. Google data ranges from browser history, location data, *** data, and much more. This analytics tool allows any person, with or without coding experience, to analyze personal information as captured by Google and potentially make a few interesting conclusions.
!worldmap
Sample browser history and location datasets are provided in the repository.
However, if you are interested in this analysis, it is encouraged that you download your own personal Google datasets and use it as replacement for the sample datasets. Visit https://takeout.google.com/settings/takeout to download your data.
The current aim is to build the analytics tool around location data and browser history data. When a working analytics tool has been built around this data, the goal is to expand to other personal Google datasets.
Location data is provided in JSON format with a number of attributes.
Timestamp: A timestamp is provided to identify when a location was captured.
Longitude: Longitudinal coordinate for captured location.
Lattitude: Latitudinal coordinate for captured location.
Accuracy: Accuracy distance of the captured location.
Altitude: Distance above sea level of the captured location.
Browser history data is provided in JSON format with a number of attributes.
Icon URL: Location of the icon used for the URL.
Page Transition: How the page was accessed.
Title: Title of the page visited.
Client ID: ID of the person who visited the page.
Timestamp: Timestamp for when the page was visited.
As the analytics tool grows, more questions will be added to the list below.
Each of the analysis questions above can be investigated by testing a given hypothesis. The hypotheses below relate to the questions above.
Every analysis done during hypothesis testing needs to be communicated in a simple and effective manner. The following general steps will be followed:
Hypothesis: A Google user's browser history is dependent on his/her location due to having different interests when in different locations.
Convert browser history and location JSON files into tables by importing it into R using the R package called rjson.
Remove unnecessary data from both datasets by limiting data, such as the amount of locations being captured per second, and removing columns that will not be used, such as Icon URL in browser history.
Remove information that does not fall within the analysis. If the datasets do not have the same time ranges, limit the time range limits so that the data can be joined.
Merge datasets by timestamps. To map browser history to location, we need to take the time of browser history and location into account. We need to make sure that we know which URL's were visited in which locations.
Generalize time periods so that locations and browser history can be grouped per week, for instance.
Use natural language processing to find general topics that were browsed.
Visualise personal location data on map. The tidyverse R package provides sufficient resources to generate maps and visualise location data as points on top of it.
Use aesthetics, such as colour and size of points to visualise which were the most popular topics browsed per location.
If you do not want to run the entire analysis locally (possibly due to not having the environment set up on your local machine), the easiest way of running the analysis is by using Docker.
If you have Docker installed, you can run the following command to download the image. This will download the environment that you need to run the analysis, together with the analysis code.
docker pull johannesharmse/google
To create a container from this image, run the following command:
docker run -i -t -v LOCAL/DIRECTORY:/google jharmse/google:latest
You have now created an instance of the image within your local directory. Please remember to specify your unique directory in the code above.
You can now run the code, such as the Makefile, as indicated below.
Clone the repository to a local directory. You can run git clone https://github.com/johannesharmse/Google-Data-Analysis.git in your command prompt or bash to store this repository locally.
It is encouraged that you use your own personal data for this analysis. As a last resort, the scripts will use the repository sample data for the analysis. Go to https://takeout.google.com/settings/takeout and follow the instructions on how to download your data. The following two datasets need to be downloaded:
After downloading the data, paste the two downloaded folders (Chrome and Location History) in the data folder of the cloned repository.
Before running the scripts, you might want to alter visualisation arguments. Open src/data_visualization.R to specify arguments. When opening the file, scroll to the bottom of the script and change the arguments of the saveHTML function to your liking. This is where you can change the location, zoom factor and time frequency of plots. Save and close the file after changing the arguments.
Navigate to the src folder and run the scripts in the sequence below:
data_import.Rdata_cleaning.Rdata_visualization.Rreport_render.Rresults folder to find all the generated files. The most comprehensive file is Google_Data_Analysis_Report.html. Open the file in one of your local browsers to see the results of the analysis.!makefile
After following one of the methods above, you can run the Makefile. If you would like to copy any files to your local directory, you can specify it using the copy argument. An example Makefile command looks as follow:
make all # runs analysis without copying anything locally make all copy="results" # saves results locally in usr/bin/
copy can have a value of "script", "results" or "all", depending on what you want to copy locally.
If you would like to delete the files created by the Makefile, you can run the following command:
make clean
https://github.com/johannesharmse/Google-Data-Analysis/blob/master/CONTRIBUTING.md
https://github.com/johannesharmse/Google-Data-Analysis/blob/master/LICENSE.md
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务