Hey! For python web scrape an article github, you might wanna check out the GitHub API instead of scraping. It’s way cleaner and avoids rate limits.
If you’re set on scraping, try `pygithub` or `github3.py`—they’re wrappers that make life easier.
For markdown, GitHub’s API returns raw content, so you can grab it directly without HTML parsing. Here’s a quick snippet:
```python
import requests
url = "https://api.github.com/repos/{owner}/{repo}/contents/{path}"
response = requests.get(url)
print(response.json()['content'])
```
Hope that helps!
If you’re set on scraping, try `pygithub` or `github3.py`—they’re wrappers that make life easier.
For markdown, GitHub’s API returns raw content, so you can grab it directly without HTML parsing. Here’s a quick snippet:
```python
import requests
url = "https://api.github.com/repos/{owner}/{repo}/contents/{path}"
response = requests.get(url)
print(response.json()['content'])
```
Hope that helps!
