#Task:
Write a function `get_member_since` which accepts a username from someone at Codewars and returns an string containing the month and year separated by a space that they joined CodeWars.

###If you want/don't want your username to be in the tests, ask me in the discourse area. There can't be too many though because the server may time out.

#Example:

```python
>>> get_member_since('dpleshkov')
Jul 2016
>>> get_member_since('jhoffner')
Oct 2012
```

#Libraries/Recommendations:

##Python:

* `urllib.request.urlopen`: Opens up a webpage.
* `re`: The RegEx library for Python.
* `bs4`([BeautifulSoup](https://www.crummy.com/software/BeautifulSoup/bs4/doc)): A tool for scraping HTML and XML.
* **Python 2 is not working for this kata. :(**

#Notes:

* Time out / server errors often happen with the test cases depending on the status of the codewars website. Try submitting your code a few times or at different hours of the day if needed.
* Feel free to voice your comments and concerns in the discourse area.

Difficulty: EASY
Tags: String algorithms

Fundamentals

Starter code:
def get_member_since(username):
	

Solutions:
from urllib.request import urlopen
from bs4 import BeautifulSoup as bs

def get_member_since(username):
	html = urlopen(f'https://www.codewars.com/users/{username}')
	soup = bs(html.read(), 'html.parser')
	tags = soup.find_all('div', {'class': 'stat'})
	member_tag = [x.text for x in tags if 'Member Since' in x.text][0]
	return member_tag.split(':')[1]


from requests import get

def get_member_since(who):
	return get('https://www.codewars.com/users/' + who).text.split('Since:</b>', 1)[1].split('<', 1)[0]


from bs4 import BeautifulSoup
from urllib.request import urlopen

def get_member_since(username):
	return BeautifulSoup(urlopen('https://www.codewars.com/users/' + username)).find(string='Member Since:').next_element


from urllib.request import urlopen
from bs4 import BeautifulSoup

def get_member_since(username):
	page = urlopen('https://www.codewars.com/users/' + username)
	soup = BeautifulSoup(page, 'html.parser')
	for i in soup.select('.stat'):
		if 'Member Since' in i.text.strip():
			text = i.text.strip()
			final = text[13:]
			return final


import urllib.request, re

def get_member_since(user):
	URL = 'https://www.codewars.com/users/'
	page = urllib.request.urlopen(URL + user)
	join_date = re.search('[A-Z][a-z]+ \\d+', str(page.read()))
	return join_date.group()


import urllib.request
import bs4
import re

def get_member_since(username):
	soup = bs4.BeautifulSoup(urllib.request.urlopen(f'https://www.codewars.com/users/{username}'))
	return re.search('(?<=Member Since:</b>).+?(?=</div>)', str(soup.findAll('div', attrs={'class': 'stat'}))).group()


import requests
from bs4 import BeautifulSoup
import re

def get_member_since(username):
	soup = BeautifulSoup(requests.get('https://www.codewars.com/users/' + username).text, 'html.parser')
	return str(re.findall('Member Since:</b>........</div>?', str(soup.body.div.div.main.section)))[19:27]


import urllib.request

def get_member_since(username):
	url = 'https://www.codewars.com/users/' + username + '/stats'
	with urllib.request.urlopen(url) as response:
		html = response.read().decode('utf-8')
	return html.split('Member Since')[1][5:13]